rc: rstr() shouldnt skip trailing NUL bytes (thanks ori)

This commit is contained in:
cinap_lenrek 2022-01-02 03:33:34 +00:00
parent c4e30bede2
commit 11d573d7f9

View file

@ -90,7 +90,7 @@ rstr(io *b, char *stop)
l = rchr(b);
if(l == EOF)
return 0;
} while(strchr(stop, l));
} while(l && strchr(stop, l));
b->bufp--;
s = 0;