summaryrefslogtreecommitdiffstats
path: root/buf.c
diff options
context:
space:
mode:
Diffstat (limited to 'buf.c')
-rw-r--r--buf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/buf.c b/buf.c
index d95a9033..928eaece 100644
--- a/buf.c
+++ b/buf.c
@@ -339,7 +339,7 @@ val replace_buf(val buf, val items, val from, val to)
if (zerop(len_it))
return buf;
if (bufp(items)) {
- memcpy(buf->b.data + c_num(from), items->b.data, c_num(len_it));
+ memmove(buf->b.data + c_num(from), items->b.data, c_num(len_it));
} else {
seq_iter_t item_iter;
seq_iter_init(self, &item_iter, items);