Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 Jul 2016 07:56:01 +0000 (UTC)
From:      "Andrey A. Chernov" <ache@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r302711 - head/usr.bin/tr
Message-ID:  <201607130756.u6D7u1ad053903@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ache
Date: Wed Jul 13 07:56:01 2016
New Revision: 302711
URL: https://svnweb.freebsd.org/changeset/base/302711

Log:
  Fully back out r302594 case 2) since overflow may happens.

Modified:
  head/usr.bin/tr/tr.c

Modified: head/usr.bin/tr/tr.c
==============================================================================
--- head/usr.bin/tr/tr.c	Wed Jul 13 06:55:21 2016	(r302710)
+++ head/usr.bin/tr/tr.c	Wed Jul 13 07:56:01 2016	(r302711)
@@ -266,7 +266,7 @@ endloop:
 		 */
 		s2.str = argv[1];
 		s2.state = NORMAL;
-		for (cnt = 0; cnt <= WINT_MAX; cnt++) {
+		for (cnt = 0; cnt < WINT_MAX; cnt++) {
 			if (Cflag && !iswrune(cnt))
 				continue;
 			if (cmap_lookup(map, cnt) == OOBCH) {



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