about summary refs log tree commit diff
path: root/string/argz-insert.c
diff options
context:
space:
mode:
Diffstat (limited to 'string/argz-insert.c')
-rw-r--r--string/argz-insert.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/string/argz-insert.c b/string/argz-insert.c
index a110060e9d..3905728f2a 100644
--- a/string/argz-insert.c
+++ b/string/argz-insert.c
@@ -51,8 +51,8 @@ __argz_insert (char **argz, size_t *argz_len, char *before, const char *entry)
     if (new_argz)
       {
 	before = new_argz + (before - *argz);
-	memcpy (before + entry_len, before, after_before);
-	memcpy (before, entry, entry_len);
+	memmove (before + entry_len, before, after_before);
+	memmove (before, entry, entry_len);
 	*argz = new_argz;
 	*argz_len = new_argz_len;
 	return 0;