aboutsummaryrefslogtreecommitdiffstats
path: root/io.c
diff options
context:
space:
mode:
Diffstat (limited to 'io.c')
-rw-r--r--io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/io.c b/io.c
index 2714398e..0af8ab1e 100644
--- a/io.c
+++ b/io.c
@@ -3702,7 +3702,7 @@ again:
* If still room in buffer, skip over null match
* and restart search. Otherwise, return.
*/
- if (bp + iop->scanoff < iop->dataend) {
+ if (bp + iop->scanoff <= iop->dataend) {
bp += iop->scanoff;
goto again;
}