2005-04-28 Jeff Johnston <jjohnstn@redhat.com>

* libc/stdio/vfscanf.c (__svfscanf_r): Fix code thinko
        when checking for multiple flags.
This commit is contained in:
Jeff Johnston 2005-04-28 18:26:08 +00:00
parent 5c70f2f92e
commit 5456408b84
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2005-04-28 Jeff Johnston <jjohnstn@redhat.com>
* libc/stdio/vfscanf.c (__svfscanf_r): Fix code thinko
when checking for multiple flags.
2005-04-18 Hans-Peter Nilsson <hp@axis.com>
* configure.host <cris-*-* | crisv32-*-*>: Set

View File

@ -1050,7 +1050,8 @@ _DEFUN(__SVFSCANF_R, (rptr, fp, fmt0, ap),
case 'n':
case 'N':
if (nancount == 0
&& (flags & (SIGNOK | NDIGITS | DPTOK | EXPOK)))
&& (flags & (SIGNOK | NDIGITS | DPTOK | EXPOK)) ==
(SIGNOK | NDIGITS | DPTOK | EXPOK))
{
flags &= ~(SIGNOK | DPTOK | EXPOK | NDIGITS);
nancount = 1;