summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormarkj <markj@FreeBSD.org>2013-03-12 19:18:10 +0000
committermarkj <markj@FreeBSD.org>2013-03-12 19:18:10 +0000
commit36a7f1a82da889b75c6215a1f474177d48047a16 (patch)
tree4fb1b512a631341727ec19f4a38593ea03a7903f
parentdfee8b6c5e2b31be2b536dbb6d47b9909bf10e16 (diff)
downloadFreeBSD-src-36a7f1a82da889b75c6215a1f474177d48047a16.zip
FreeBSD-src-36a7f1a82da889b75c6215a1f474177d48047a16.tar.gz
Revert r246917, as it is causing incorrect behaviour as reported on
freebsd-current. PR: bin/175213 Approved by: emaste (co-mentor)
-rw-r--r--usr.bin/grep/regex/tre-fastmatch.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/grep/regex/tre-fastmatch.c b/usr.bin/grep/regex/tre-fastmatch.c
index 640ee3d..b7a7c91 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
OpenPOWER on IntegriCloud