From 2114e10acb7494eddd5417c27cd52199f4fe9517 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Sat, 23 Dec 1995 01:14:10 +0000 Subject: Fri Dec 22 00:38:00 1995 H.J. Lu * stdio-common/vfscanf.c: Correctly handle white space skipping. * stdio-common/Makefile (tests): Add bug11. * stdio-common/bug11.c: New file. Fri Dec 22 00:38:00 1995 H.J. Lu * stdio-common/vfscanf.c: Correctly handle white space skipping. * stdio-common/Makefile (tests): Add bug11. * stdio-common/bug11.c: New file. --- stdio-common/vfscanf.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'stdio-common/vfscanf.c') diff --git a/stdio-common/vfscanf.c b/stdio-common/vfscanf.c index df68260cdd..14aa7d9748 100644 --- a/stdio-common/vfscanf.c +++ b/stdio-common/vfscanf.c @@ -233,9 +233,8 @@ __vfscanf (FILE *s, const char *format, va_list argptr) if (c == EOF) input_error (); - /* We saw an white space as the last character in the format - string. Now it's time to skip all leading white - spaces. */ + /* We saw white space char as the last character in the format + string. Now it's time to skip all leading white space. */ if (skip_space) { while (isspace (c)) @@ -243,7 +242,7 @@ __vfscanf (FILE *s, const char *format, va_list argptr) skip_space = 0; } - else if (c == fc) + if (c == fc) (void) inchar (); else conv_error (); -- cgit 1.4.1