Author: das
Date: Sun Apr 22 21:28:33 2012
New Revision: 234588
URL: http://svn.freebsd.org/changeset/base/234588

Log:
  Bugfix: Include whitespace characters in the count of the number of
  characters read.

Modified:
  head/lib/libc/stdio/vfwscanf.c

Modified: head/lib/libc/stdio/vfwscanf.c
==============================================================================
--- head/lib/libc/stdio/vfwscanf.c      Sun Apr 22 21:28:14 2012        
(r234587)
+++ head/lib/libc/stdio/vfwscanf.c      Sun Apr 22 21:28:33 2012        
(r234588)
@@ -506,7 +506,7 @@ __vfwscanf(FILE * __restrict fp, locale_
                if (iswspace(c)) {
                        while ((c = __fgetwc(fp, locale)) != WEOF &&
                            iswspace_l(c, locale))
-                               ;
+                               nread++;
                        if (c != WEOF)
                                __ungetwc(c, fp, locale);
                        continue;
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to