summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2000-09-06 21:54:53 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2000-09-06 21:54:53 +0000
commit4969326cd692600195af7ac4902f501aed588fea (patch)
treef01b41df6c1e25d9bd0af905e26d24d59d7f6ac0 /src
parent2d1ac3059a0d9df1ef2420080d642d04fac8934d (diff)
downloadirssi-4969326cd692600195af7ac4902f501aed588fea.zip
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
Diffstat (limited to 'src')
-rw-r--r--src/core/line-split.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/line-split.c b/src/core/line-split.c
index 18f31425..9d4c0ab0 100644
--- a/src/core/line-split.c
+++ b/src/core/line-split.c
@@ -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;
}