From d3b520289178bbe9c252c0a2784a529b89951945 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Tue, 20 Apr 2004 04:28:00 +0000 Subject: Update. 2004-04-20 Jakub Jelinek * stdio-common/vfscanf.c (_IO_vfscanf): When skipping whitespace, do input_error () instead of conv_error () and don't look at errno. Don't eat any whitespace before %% if skip_space == 0. * stdio-common/tst-sscanf.c (int_tests): New array. (main): Run int_tests. See ChangeLog.14 for earlier changes. --- stdio-common/vfscanf.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'stdio-common/vfscanf.c') diff --git a/stdio-common/vfscanf.c b/stdio-common/vfscanf.c index ac6fcdf79f..551849b115 100644 --- a/stdio-common/vfscanf.c +++ b/stdio-common/vfscanf.c @@ -396,8 +396,8 @@ _IO_vfscanf (s, format, argptr, errp) if (skip_space) { while (ISSPACE (c)) - if (inchar () == EOF && errno == EINTR) - conv_error (); + if (inchar () == EOF) + input_error (); skip_space = 0; } @@ -543,7 +543,8 @@ _IO_vfscanf (s, format, argptr, errp) /* Find the conversion specifier. */ fc = *f++; if (skip_space || (fc != L_('[') && fc != L_('c') - && fc != L_('C') && fc != L_('n'))) + && fc != L_('C') && fc != L_('n') + && fc != L_('%'))) { /* Eat whitespace. */ int save_errno = errno; -- cgit v1.2.3