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:
parent
5c70f2f92e
commit
5456408b84
@ -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
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user