Bugfix: Include whitespace characters in the count of the number of
characters read.
This commit is contained in:
parent
114cb5b357
commit
1c56974f7a
@ -506,7 +506,7 @@ __vfwscanf(FILE * __restrict fp, locale_t locale,
|
||||
if (iswspace(c)) {
|
||||
while ((c = __fgetwc(fp, locale)) != WEOF &&
|
||||
iswspace_l(c, locale))
|
||||
;
|
||||
nread++;
|
||||
if (c != WEOF)
|
||||
__ungetwc(c, fp, locale);
|
||||
continue;
|
||||
|
Loading…
x
Reference in New Issue
Block a user