From 00e125db5a650e3cccc18547da89e3f7f40af094 Mon Sep 17 00:00:00 2001 From: "Thomas Bushnell, BSG" Date: Mon, 8 Jul 1996 17:12:04 +0000 Subject: [PATCH] string/argz-delete.c (argz_delete): Use memmove instead of memcpy for possbly overlapping strings. --- string/argz-delete.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/string/argz-delete.c b/string/argz-delete.c index 729b1b8..584270a 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); -- 2.7.4