svn commit: r225263 - user/gabor/grep/trunk/regex

Gabor Kovesdan gabor at FreeBSD.org
Tue Aug 30 16:20:16 UTC 2011


Author: gabor
Date: Tue Aug 30 16:20:16 2011
New Revision: 225263
URL: http://svn.freebsd.org/changeset/base/225263

Log:
  - Revert a minor change that broke the code

Modified:
  user/gabor/grep/trunk/regex/fastmatch.c

Modified: user/gabor/grep/trunk/regex/fastmatch.c
==============================================================================
--- user/gabor/grep/trunk/regex/fastmatch.c	Tue Aug 30 13:59:34 2011	(r225262)
+++ user/gabor/grep/trunk/regex/fastmatch.c	Tue Aug 30 16:20:16 2011	(r225263)
@@ -170,7 +170,7 @@ tre_fastfree(fastmatch_t *preg)
     size_t offset = pmatch[0].rm_so;					\
     int ret;								\
 									\
-    if ((len != (unsigned)-1) && (pmatch[0].rm_eo > (off_t)len))	\
+    if ((len != (unsigned)-1) && (pmatch[0].rm_eo > len))		\
       return REG_NOMATCH;						\
     if ((long long)pmatch[0].rm_eo - pmatch[0].rm_so < 0)		\
       return REG_NOMATCH;						\


More information about the svn-src-user mailing list