From cb81b6947c0277a6a27ddc699d716e9cf2b524aa Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Thu, 19 Apr 2012 12:47:34 -0400 Subject: fix really bad breakage in strtol, etc.: failure to accept leading spaces --- src/stdio/vfscanf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/stdio') diff --git a/src/stdio/vfscanf.c b/src/stdio/vfscanf.c index 73294cdb..64fa9754 100644 --- a/src/stdio/vfscanf.c +++ b/src/stdio/vfscanf.c @@ -291,7 +291,7 @@ int vfscanf(FILE *f, const char *fmt, va_list ap) case 'e': case 'E': case 'f': case 'F': case 'g': case 'G': - y = __floatscan(f, -1, size, 0); + y = __floatscan(f, size, 0); if (!shcnt(f)) goto match_fail; if (dest) switch (size) { case SIZE_def: -- cgit v1.2.1