summaryrefslogtreecommitdiff
path: root/io.c
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2021-01-07 22:16:35 +0200
committerArnold D. Robbins <arnold@skeeve.com>2021-01-07 22:16:35 +0200
commit0bfbda5996ca795c1b5d781c11be490035dc9c23 (patch)
tree56a0799b6e2f902ad23993635908b4349b53db8e /io.c
parent62a83e256f4db1576a0652780810a70d26ae6136 (diff)
downloadgawk-0bfbda5996ca795c1b5d781c11be490035dc9c23.tar.gz
Bug fix when RS matches null string.
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;
}