musl - musl - an implementation of the standard library for Linux-based systems

index : musl
musl - an implementation of the standard library for Linux-based systems
summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/internal/intscan.c 1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/internal/intscan.c b/src/internal/intscan.c
index a00f2ccc..d65fc45c 100644
--- 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;
generated by cgit v1.2.1 (git 2.18.0) at 2025年09月11日 15:11:06 +0000

AltStyle によって変換されたページ (->オリジナル) /