From owner-svn-src-head@freebsd.org Fri Dec 29 14:56:47 2017 Return-Path: Delivered-To: svn-src-head@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 9BA5EE9EE9B; Fri, 29 Dec 2017 14:56:47 +0000 (UTC) (envelope-from eadler@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 68E116CB83; Fri, 29 Dec 2017 14:56:47 +0000 (UTC) (envelope-from eadler@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vBTEukEw064217; Fri, 29 Dec 2017 14:56:46 GMT (envelope-from eadler@FreeBSD.org) Received: (from eadler@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vBTEukI4064216; Fri, 29 Dec 2017 14:56:46 GMT (envelope-from eadler@FreeBSD.org) Message-Id: <201712291456.vBTEukI4064216@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: eadler set sender to eadler@FreeBSD.org using -f From: Eitan Adler Date: Fri, 29 Dec 2017 14:56:46 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r327343 - head/lib/libc/locale X-SVN-Group: head X-SVN-Commit-Author: eadler X-SVN-Commit-Paths: head/lib/libc/locale X-SVN-Commit-Revision: 327343 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 Dec 2017 14:56:47 -0000 Author: eadler Date: Fri Dec 29 14:56:46 2017 New Revision: 327343 URL: https://svnweb.freebsd.org/changeset/base/327343 Log: libc/locale: fix an off-by-one in newlocale Reported by: zrj@DragonFlyBSD.org Modified: head/lib/libc/locale/xlocale.c Modified: head/lib/libc/locale/xlocale.c ============================================================================== --- head/lib/libc/locale/xlocale.c Fri Dec 29 14:31:43 2017 (r327342) +++ head/lib/libc/locale/xlocale.c Fri Dec 29 14:56:46 2017 (r327343) @@ -275,7 +275,7 @@ locale_t newlocale(int mask, const char *locale, local for (type=0 ; typecomponents[type] = constructors[type](realLocale, new);