changeset 13209:72414fe08156

[gaim-migrate @ 15573] Ethan noticed that the src and target memory may overlap under certain conditions, so we should use memmove instead of memcpy committer: Tailor Script <tailor@pidgin.im>
author Daniel Atallah <daniel.atallah@gmail.com>
date Thu, 09 Feb 2006 20:51:27 +0000
parents de4f1fb08088
children 77e1d19c115a
files src/gaim_buffer.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/gaim_buffer.c	Thu Feb 09 20:07:59 2006 +0000
+++ b/src/gaim_buffer.c	Thu Feb 09 20:51:27 2006 +0000
@@ -70,7 +70,7 @@
 		/* If we couldn't fit the wrapped read buffer
 		 * at the end */
 		if (shift_n < in_offset) {
-			memcpy(buf->buffer,
+			memmove(buf->buffer,
 				buf->buffer + shift_n,
 				in_offset - shift_n);
 			buf->inptr = buf->buffer +