# HG changeset patch # User Daniel Atallah # Date 1139518287 0 # Node ID 72414fe081564d1c046a4d66c8568746648af98e # Parent de4f1fb08088d41dd6ac6f8c77802878c6a7a917 [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 diff -r de4f1fb08088 -r 72414fe08156 src/gaim_buffer.c --- 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 +