mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-08-10 20:00:27 +00:00
vcscanf: buffer the last 'y' of "infinity"
I don't know why I thought this wasn't necessary.
This commit is contained in:
parent
ded97bf5af
commit
c78ae967f8
1 changed files with 1 additions and 0 deletions
|
@ -391,6 +391,7 @@ int __vcscanf(int callback(void *), //
|
||||||
if (c == 't' || c == 'T') {
|
if (c == 't' || c == 'T') {
|
||||||
c = BUFFER;
|
c = BUFFER;
|
||||||
if (c == 'y' || c == 'Y') {
|
if (c == 'y' || c == 'Y') {
|
||||||
|
c = BUFFER;
|
||||||
} else {
|
} else {
|
||||||
goto Done;
|
goto Done;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue