mirror of
https://github.com/irssi/irssi.git
synced 2024-12-04 14:46:39 -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:
parent
2d1ac3059a
commit
4969326cd6
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user