Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 4 Dec 2015 18:24:47 +0000 (UTC)
From:      Bryan Drewery <bdrewery@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org
Subject:   svn commit: r291799 - stable/10/lib/libc/iconv
Message-ID:  <201512041824.tB4IOlFE022406@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bdrewery
Date: Fri Dec  4 18:24:47 2015
New Revision: 291799
URL: https://svnweb.freebsd.org/changeset/base/291799

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

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

Modified: stable/10/lib/libc/iconv/citrus_esdb.c
==============================================================================
--- stable/10/lib/libc/iconv/citrus_esdb.c	Fri Dec  4 18:23:50 2015	(r291798)
+++ stable/10/lib/libc/iconv/citrus_esdb.c	Fri Dec  4 18:24:47 2015	(r291799)
@@ -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,



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201512041824.tB4IOlFE022406>