diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2021-01-07 22:16:35 +0200 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2021-01-07 22:16:35 +0200 |
commit | 0bfbda5996ca795c1b5d781c11be490035dc9c23 (patch) | |
tree | 56a0799b6e2f902ad23993635908b4349b53db8e /io.c | |
parent | 62a83e256f4db1576a0652780810a70d26ae6136 (diff) | |
download | egawk-0bfbda5996ca795c1b5d781c11be490035dc9c23.tar.gz egawk-0bfbda5996ca795c1b5d781c11be490035dc9c23.tar.bz2 egawk-0bfbda5996ca795c1b5d781c11be490035dc9c23.zip |
Bug fix when RS matches null string.
Diffstat (limited to 'io.c')
-rw-r--r-- | io.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; } |