svn commit: r291800 - stable/9/lib/libc/iconv

Bryan Drewery bdrewery at FreeBSD.org
Fri Dec 4 18:24:52 UTC 2015


Author: bdrewery
Date: Fri Dec  4 18:24:51 2015
New Revision: 291800
URL: https://svnweb.freebsd.org/changeset/base/291800

Log:
  MFC r290169:
  
    Use memmove(3) to avoid overlapping copy.

Modified:
  stable/9/lib/libc/iconv/citrus_esdb.c
Directory Properties:
  stable/9/lib/libc/   (props changed)

Modified: stable/9/lib/libc/iconv/citrus_esdb.c
==============================================================================
--- stable/9/lib/libc/iconv/citrus_esdb.c	Fri Dec  4 18:24:47 2015	(r291799)
+++ stable/9/lib/libc/iconv/citrus_esdb.c	Fri Dec  4 18:24:51 2015	(r291800)
@@ -328,7 +328,7 @@ _citrus_esdb_get_list(char ***rlist, siz
 			    (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,


More information about the svn-src-stable-9 mailing list