about summary refs log tree commit diff
path: root/string
diff options
context:
space:
mode:
Diffstat (limited to 'string')
-rw-r--r--string/argz-delete.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/string/argz-delete.c b/string/argz-delete.c
index 729b1b8371..584270a42f 100644
--- a/string/argz-delete.c
+++ b/string/argz-delete.c
@@ -31,7 +31,7 @@ argz_delete (char **argz, size_t *argz_len, char *entry)
     {
       size_t entry_len = strlen (entry) + 1;
       *argz_len -= entry_len;
-      memcpy (entry, entry + entry_len, *argz_len - (entry - *argz));
+      memmove (entry, entry + entry_len, *argz_len - (entry - *argz));
       if (*argz_len == 0)
 	{
 	  free (*argz);