aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/grep/regex/tre-fastmatch.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/grep/regex/tre-fastmatch.c')
-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 b7a7c91fbcfd..640ee3d6344d 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