about summary refs log tree commit diff
path: root/string
diff options
context:
space:
mode:
authorThomas Bushnell, BSG <thomas@gnu.org>1996-07-08 17:12:04 +0000
committerThomas Bushnell, BSG <thomas@gnu.org>1996-07-08 17:12:04 +0000
commit00e125db5a650e3cccc18547da89e3f7f40af094 (patch)
tree00c670504985a02ea5deb67ac8c7d86b6041db5c /string
parent3ee8457d47519211f3cac85be0c6b348c244e9bd (diff)
downloadglibc-00e125db5a650e3cccc18547da89e3f7f40af094.tar.gz
glibc-00e125db5a650e3cccc18547da89e3f7f40af094.tar.xz
glibc-00e125db5a650e3cccc18547da89e3f7f40af094.zip
string/argz-delete.c (argz_delete): Use memmove instead of memcpy for possbly overlapping strings.
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);