From e1abe4313b9fb0adbe1eda50d2724016a3ebea84 Mon Sep 17 00:00:00 2001 From: markj Date: Tue, 12 Mar 2013 19:28:41 +0000 Subject: [PATCH] MFC r248214: Revert r246917, as it is causing incorrect behaviour as reported on freebsd-current. Approved by: emaste (co-mentor) git-svn-id: svn://svn.freebsd.org/base/stable/9@248215 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f --- usr.bin/grep/regex/tre-fastmatch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.bin/grep/regex/tre-fastmatch.c b/usr.bin/grep/regex/tre-fastmatch.c index 640ee3d63..b7a7c91fb 100644 --- a/usr.bin/grep/regex/tre-fastmatch.c +++ b/usr.bin/grep/regex/tre-fastmatch.c @@ -103,7 +103,7 @@ static int fastcmp(const fastmatch_t *fg, const void *data, ((!fg->reversed \ ? ((type == STR_WIDE) ? ((j + fg->wlen) > len) \ : ((j + fg->len) > len)) \ - : (j <= 0))) + : (j < 0))) /* * Checks whether the new position after shifting in the input string -- 2.45.0