From owner-svn-src-projects@FreeBSD.ORG Fri May 18 10:26:41 2012 Return-Path: Delivered-To: svn-src-projects@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0D4D5106566C; Fri, 18 May 2012 10:26:41 +0000 (UTC) (envelope-from andrew@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id EDB9E8FC0A; Fri, 18 May 2012 10:26:40 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id q4IAQeaS047765; Fri, 18 May 2012 10:26:40 GMT (envelope-from andrew@svn.freebsd.org) Received: (from andrew@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id q4IAQeSS047763; Fri, 18 May 2012 10:26:40 GMT (envelope-from andrew@svn.freebsd.org) Message-Id: <201205181026.q4IAQeSS047763@svn.freebsd.org> From: Andrew Turner Date: Fri, 18 May 2012 10:26:40 +0000 (UTC) To: src-committers@freebsd.org, svn-src-projects@freebsd.org X-SVN-Group: projects MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r235604 - projects/arm_eabi/usr.bin/tr X-BeenThere: svn-src-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the src " projects" tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 May 2012 10:26:41 -0000 Author: andrew Date: Fri May 18 10:26:40 2012 New Revision: 235604 URL: http://svn.freebsd.org/changeset/base/235604 Log: Use the correct maximum value for a wint_t Modified: projects/arm_eabi/usr.bin/tr/tr.c Modified: projects/arm_eabi/usr.bin/tr/tr.c ============================================================================== --- projects/arm_eabi/usr.bin/tr/tr.c Fri May 18 10:23:47 2012 (r235603) +++ projects/arm_eabi/usr.bin/tr/tr.c Fri May 18 10:26:40 2012 (r235604) @@ -47,6 +47,7 @@ static const char sccsid[] = "@(#)tr.c 8 #include #include #include +#include #include #include #include @@ -267,7 +268,7 @@ endloop: */ s2.str = argv[1]; s2.state = NORMAL; - for (cnt = 0; cnt < WCHAR_MAX; cnt++) { + for (cnt = 0; cnt < WINT_MAX; cnt++) { if (Cflag && !iswrune(cnt)) continue; if (cmap_lookup(map, cnt) == OOBCH) {