Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 30 Aug 2011 16:20:16 +0000 (UTC)
From:      Gabor Kovesdan <gabor@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-user@freebsd.org
Subject:   svn commit: r225263 - user/gabor/grep/trunk/regex
Message-ID:  <201108301620.p7UGKGWm058262@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;						\



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