fix really bad breakage in strtol, etc.: failure to accept leading spaces
This commit is contained in:
parent
769d3d3498
commit
cb81b6947c
5 changed files with 9 additions and 10 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue