1
0
mirror of https://github.com/irssi/irssi.git synced 2024-11-03 04:27:19 -05:00

line_split() : use g_memmove() instead of memcpy() .. hm. how could

this even work before? :)


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@650 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2000-09-06 21:54:53 +00:00 committed by cras
parent 2d1ac3059a
commit 4969326cd6

View File

@ -107,8 +107,8 @@ int line_split(const char *data, int len, char **output, LINEBUF_REC **buffer)
rec = *buffer;
if (rec->remove > 0) {
rec->len = rec->len - rec->remove;
memcpy(rec->str, rec->str+rec->remove, rec->len);
rec->len -= rec->remove;
g_memmove(rec->str, rec->str+rec->remove, rec->len);
rec->remove = 0;
}