Date: Mon, 27 Feb 2012 15:58:38 +0000 (UTC) From: Gabor Kovesdan <gabor@FreeBSD.org> To: src-committers@freebsd.org, svn-src-user@freebsd.org Subject: svn commit: r232216 - user/gabor/tre-integration/usr.bin/grep Message-ID: <201202271558.q1RFwcaZ025251@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: gabor Date: Mon Feb 27 15:58:38 2012 New Revision: 232216 URL: http://svn.freebsd.org/changeset/base/232216 Log: - Fix infinite loop Modified: user/gabor/tre-integration/usr.bin/grep/util.c Modified: user/gabor/tre-integration/usr.bin/grep/util.c ============================================================================== --- user/gabor/tre-integration/usr.bin/grep/util.c Mon Feb 27 15:47:41 2012 (r232215) +++ user/gabor/tre-integration/usr.bin/grep/util.c Mon Feb 27 15:58:38 2012 (r232216) @@ -276,7 +276,7 @@ procline(struct str *l, int nottext) int c = 0, m = 0, r = 0; /* Loop to process the whole line */ - while (st <= l->len) { + while (st < l->len) { pmatch.rm_so = st; pmatch.rm_eo = l->len;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201202271558.q1RFwcaZ025251>