mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-08-09 19:30:29 +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') {
|
||||
c = BUFFER;
|
||||
if (c == 'y' || c == 'Y') {
|
||||
c = BUFFER;
|
||||
} else {
|
||||
goto Done;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue