svn commit: r234588 - head/lib/libc/stdio

David Schultz das at FreeBSD.org
Sun Apr 22 21:28:34 UTC 2012


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;


More information about the svn-src-head mailing list