From 1c56974f7a0b1bec1ffa7ae8f35f90036d98001e Mon Sep 17 00:00:00 2001 From: das Date: Sun, 22 Apr 2012 21:28:33 +0000 Subject: Bugfix: Include whitespace characters in the count of the number of characters read. --- lib/libc/stdio/vfwscanf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/libc/stdio') diff --git a/lib/libc/stdio/vfwscanf.c b/lib/libc/stdio/vfwscanf.c index f715672..6b4d8c5 100644 --- a/lib/libc/stdio/vfwscanf.c +++ b/lib/libc/stdio/vfwscanf.c @@ -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; -- cgit v1.1