projects
/
oweals
/
musl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
99fbf4c
)
fix failure of int parser to unget an initial mismatching character
author
Rich Felker
<dalias@aerifal.cx>
Wed, 18 Apr 2012 01:17:19 +0000
(21:17 -0400)
committer
Rich Felker
<dalias@aerifal.cx>
Wed, 18 Apr 2012 01:17:19 +0000
(21:17 -0400)
src/internal/intscan.c
patch
|
blob
|
history
diff --git
a/src/internal/intscan.c
b/src/internal/intscan.c
index a00f2ccc2206de3acfd2641c1f33b65f015c6580..d65fc45c3c5359a7ffc88066b13cfeaf805a02fb 100644
(file)
--- a/
src/internal/intscan.c
+++ b/
src/internal/intscan.c
@@
-54,6
+54,7
@@
unsigned long long __intscan(FILE *f, unsigned base, int pok, unsigned long long
} else {
if (base == 0) base = 10;
if (val[c] >= base) {
+ shunget(f);
shlim(f, 0);
errno = EINVAL;
return 0;