From 42fd244b0bf9d76d412cb38b91bcdaed3867d1fd Mon Sep 17 00:00:00 2001 From: bdrewery Date: Fri, 4 Dec 2015 18:24:47 +0000 Subject: MFC r290169: Use memmove(3) to avoid overlapping copy. --- lib/libc/iconv/citrus_esdb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/libc') 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, -- cgit v1.1