Bugfix: Include whitespace characters in the count of the number of

characters read.
This commit is contained in:
das 2012-04-22 21:28:33 +00:00
parent 114cb5b357
commit 1c56974f7a

View File

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