svn commit: r232216 - user/gabor/tre-integration/usr.bin/grep

Gabor Kovesdan gabor at FreeBSD.org
Mon Feb 27 15:58:38 UTC 2012


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;
 


More information about the svn-src-user mailing list