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:
parent
2d1ac3059a
commit
4969326cd6
@ -107,8 +107,8 @@ int line_split(const char *data, int len, char **output, LINEBUF_REC **buffer)
|
|||||||
rec = *buffer;
|
rec = *buffer;
|
||||||
|
|
||||||
if (rec->remove > 0) {
|
if (rec->remove > 0) {
|
||||||
rec->len = rec->len - rec->remove;
|
rec->len -= rec->remove;
|
||||||
memcpy(rec->str, rec->str+rec->remove, rec->len);
|
g_memmove(rec->str, rec->str+rec->remove, rec->len);
|
||||||
rec->remove = 0;
|
rec->remove = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user