string/argz-delete.c (argz_delete): Use memmove instead of
authormib <mib>
Mon, 8 Jul 1996 17:12:04 +0000 (17:12 +0000)
committermib <mib>
Mon, 8 Jul 1996 17:12:04 +0000 (17:12 +0000)
memcpy for possbly overlapping strings.

string/argz-delete.c

index 729b1b8..584270a 100644 (file)
@@ -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);