Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/newlib
diff options
context:
space:
mode:
authorJeff Johnston <jjohnstn@redhat.com>2005-04-28 22:26:08 +0400
committerJeff Johnston <jjohnstn@redhat.com>2005-04-28 22:26:08 +0400
commit5456408b8466470b135a0fc96dbc63a925244100 (patch)
treea389a9627535ac810443c021b9b5a60b43ab62c7 /newlib
parent5c70f2f92e610ea1504e62db0a08469b4864424e (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')
-rw-r--r--newlib/ChangeLog5
-rw-r--r--newlib/libc/stdio/vfscanf.c3
2 files changed, 7 insertions, 1 deletions
diff --git a/newlib/ChangeLog b/newlib/ChangeLog
index 1e8d8c3f5..e6a46ad93 100644
--- a/newlib/ChangeLog
+++ b/newlib/ChangeLog
@@ -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
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;