summaryrefslogtreecommitdiff
path: root/src/libstddjb/netstring_appendv.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstddjb/netstring_appendv.c')
-rw-r--r--src/libstddjb/netstring_appendv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstddjb/netstring_appendv.c b/src/libstddjb/netstring_appendv.c
index 652bd05..a3398da 100644
--- a/src/libstddjb/netstring_appendv.c
+++ b/src/libstddjb/netstring_appendv.c
@@ -20,7 +20,7 @@ int netstring_appendv (stralloc *sa, struct iovec const *v, unsigned int n)
sa->len += pos+1 ;
for (i = 0 ; i < n ; i++)
{
- memmove(sa->s + sa->len, v[i].iov_base, v[i].iov_len) ;
+ memcpy(sa->s + sa->len, v[i].iov_base, v[i].iov_len) ;
sa->len += v[i].iov_len ;
}
sa->s[sa->len++] = ',' ;