Mercurial > pidgin
diff libpurple/protocols/msn/directconn.c @ 30054:531fe008410e
Valgrind pointed out that dest and src may overlap, so we need to use
g_memmove here instead of memcpy.
author | Elliott Sales de Andrade <qulogic@pidgin.im> |
---|---|
date | Wed, 05 May 2010 09:07:10 +0000 |
parents | 56871d6c06fc |
children | f0de96a35877 |
line wrap: on
line diff
--- a/libpurple/protocols/msn/directconn.c Wed May 05 08:18:35 2010 +0000 +++ b/libpurple/protocols/msn/directconn.c Wed May 05 09:07:10 2010 +0000 @@ -710,7 +710,7 @@ } if (dc->in_pos > packet_length + 4) { - memcpy(dc->in_buffer, dc->in_buffer + 4 + packet_length, dc->in_pos - packet_length - 4); + g_memmove(dc->in_buffer, dc->in_buffer + 4 + packet_length, dc->in_pos - packet_length - 4); } dc->in_pos -= packet_length + 4;