Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 22 Apr 2012 21:28:33 +0000 (UTC)
From:      David Schultz <das@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r234588 - head/lib/libc/stdio
Message-ID:  <201204222128.q3MLSXR4059918@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201204222128.q3MLSXR4059918>