From owner-svn-src-stable-10@freebsd.org Fri Dec 4 18:24:48 2015 Return-Path: Delivered-To: svn-src-stable-10@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id AD5AEA41DFF; Fri, 4 Dec 2015 18:24:48 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 76EE012C5; Fri, 4 Dec 2015 18:24:48 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id tB4IOlgO022407; Fri, 4 Dec 2015 18:24:47 GMT (envelope-from bdrewery@FreeBSD.org) Received: (from bdrewery@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id tB4IOlFE022406; Fri, 4 Dec 2015 18:24:47 GMT (envelope-from bdrewery@FreeBSD.org) Message-Id: <201512041824.tB4IOlFE022406@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: bdrewery set sender to bdrewery@FreeBSD.org using -f From: Bryan Drewery Date: Fri, 4 Dec 2015 18:24:47 +0000 (UTC) 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 X-SVN-Group: stable-10 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-stable-10@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: SVN commit messages for only the 10-stable src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Dec 2015 18:24:48 -0000 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,