diff src/gaim_buffer.c @ 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 33bef17125c2
children 64bae3cbec8d
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 +