diff options
author | Jeff Johnston <jjohnstn@redhat.com> | 2005-04-28 22:26:08 +0400 |
---|---|---|
committer | Jeff Johnston <jjohnstn@redhat.com> | 2005-04-28 22:26:08 +0400 |
commit | 5456408b8466470b135a0fc96dbc63a925244100 (patch) | |
tree | a389a9627535ac810443c021b9b5a60b43ab62c7 /newlib/libc | |
parent | 5c70f2f92e610ea1504e62db0a08469b4864424e (diff) |
2005-04-28 Jeff Johnston <jjohnstn@redhat.com>
* libc/stdio/vfscanf.c (__svfscanf_r): Fix code thinko
when checking for multiple flags.
Diffstat (limited to 'newlib/libc')
-rw-r--r-- | newlib/libc/stdio/vfscanf.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/newlib/libc/stdio/vfscanf.c b/newlib/libc/stdio/vfscanf.c index 80c652aba..ae2581a3b 100644 --- a/newlib/libc/stdio/vfscanf.c +++ b/newlib/libc/stdio/vfscanf.c @@ -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; |