]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Don't recognize hexadecimal floats without exponent.
authorUlrich Drepper <drepper@redhat.com>
Sun, 15 Aug 1999 20:13:55 +0000 (20:13 +0000)
committerUlrich Drepper <drepper@redhat.com>
Sun, 15 Aug 1999 20:13:55 +0000 (20:13 +0000)
stdio-common/vfscanf.c

index 2e8cf9f5f5d469f4e1b2cbd984c52b18fafd7c82..db08a3dc8cd03d95b25ad29de21b2fb0b78675b2 100644 (file)
@@ -1104,7 +1104,7 @@ __vfscanf (FILE *s, const char *format, va_list argptr)
          /* Have we read any character?  If we try to read a number
             in hexadecimal notation and we have read only the `0x'
             prefix this is an error.  */
-         if (wpsize == 0 || (is_hexa && wpsize == 2))
+         if (wpsize == 0 || (is_hexa && (wpsize == 2 || ! got_e)))
            conv_error ();
 
        scan_float: