about summary refs log tree commit diff
path: root/src/internal/intscan.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/internal/intscan.c')
-rw-r--r--src/internal/intscan.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/internal/intscan.c b/src/internal/intscan.c
index d65fc45c..178cdf0d 100644
--- a/src/internal/intscan.c
+++ b/src/internal/intscan.c
@@ -32,7 +32,7 @@ unsigned long long __intscan(FILE *f, unsigned base, int pok, unsigned long long
 		errno = EINVAL;
 		return 0;
 	}
-	c = shgetc(f);
+	while (isspace((c=shgetc(f))));
 	if (c=='+' || c=='-') {
 		neg = -(c=='-');
 		c = shgetc(f);