diff options
author | Thomas Bushnell, BSG <thomas@gnu.org> | 1996-07-08 17:12:04 +0000 |
---|---|---|
committer | Thomas Bushnell, BSG <thomas@gnu.org> | 1996-07-08 17:12:04 +0000 |
commit | 00e125db5a650e3cccc18547da89e3f7f40af094 (patch) | |
tree | 00c670504985a02ea5deb67ac8c7d86b6041db5c /string | |
parent | 3ee8457d47519211f3cac85be0c6b348c244e9bd (diff) | |
download | glibc-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.c | 2 |
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); |