mirror of
https://github.com/fluencelabs/musl
synced 2025-05-06 12:32:13 +00:00
fix failure of int parser to unget an initial mismatching character
This commit is contained in:
parent
99fbf4cfdb
commit
bb477f9fd4
@ -54,6 +54,7 @@ unsigned long long __intscan(FILE *f, unsigned base, int pok, unsigned long long
|
|||||||
} else {
|
} else {
|
||||||
if (base == 0) base = 10;
|
if (base == 0) base = 10;
|
||||||
if (val[c] >= base) {
|
if (val[c] >= base) {
|
||||||
|
shunget(f);
|
||||||
shlim(f, 0);
|
shlim(f, 0);
|
||||||
errno = EINVAL;
|
errno = EINVAL;
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user