Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 4 Dec 2015 18:24:51 +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-9@freebsd.org
Subject:   svn commit: r291800 - stable/9/lib/libc/iconv
Message-ID:  <201512041824.tB4IOp9h022454@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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,



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