rc: rstr() shouldnt skip trailing NUL bytes (thanks ori)
This commit is contained in:
parent
c4e30bede2
commit
11d573d7f9
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue