diff options
author | bdrewery <bdrewery@FreeBSD.org> | 2015-12-04 18:24:47 +0000 |
---|---|---|
committer | bdrewery <bdrewery@FreeBSD.org> | 2015-12-04 18:24:47 +0000 |
commit | 42fd244b0bf9d76d412cb38b91bcdaed3867d1fd (patch) | |
tree | 8359fe97cb4c307492fd8f37f23e87ceafe28391 /lib/libc/iconv | |
parent | d54c7d5fdf12043384330de97a41363bec79a9bb (diff) | |
download | FreeBSD-src-42fd244b0bf9d76d412cb38b91bcdaed3867d1fd.zip FreeBSD-src-42fd244b0bf9d76d412cb38b91bcdaed3867d1fd.tar.gz |
MFC r290169:
Use memmove(3) to avoid overlapping copy.
Diffstat (limited to 'lib/libc/iconv')
-rw-r--r-- | lib/libc/iconv/citrus_esdb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/iconv/citrus_esdb.c b/lib/libc/iconv/citrus_esdb.c index 578cbc1..ed404a6 100644 --- a/lib/libc/iconv/citrus_esdb.c +++ b/lib/libc/iconv/citrus_esdb.c @@ -328,7 +328,7 @@ _citrus_esdb_get_list(char ***rlist, size_t *rnum, bool sorted) (int)_region_size(&data), (const char *)_region_head(&data)); if ((p = strchr(buf1, '/')) != NULL) - memcpy(buf1, p + 1, strlen(p) - 1); + memmove(buf1, p + 1, strlen(p) - 1); if ((p = strstr(buf1, ".esdb")) != NULL) *p = '\0'; snprintf(buf, sizeof(buf), "%s/%.*s", buf1, |