fix really bad breakage in strtol, etc.: failure to accept leading spaces

This commit is contained in:
Rich Felker
2012-04-19 12:47:34 -04:00
parent 769d3d3498
commit cb81b6947c
5 changed files with 9 additions and 10 deletions

View File

@ -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: