]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
(_IO_vfscanf_internal): Allow hexa-decimal floats without exponent.
authorUlrich Drepper <drepper@redhat.com>
Fri, 27 Apr 2007 19:28:32 +0000 (19:28 +0000)
committerUlrich Drepper <drepper@redhat.com>
Fri, 27 Apr 2007 19:28:32 +0000 (19:28 +0000)
stdio-common/vfscanf.c

index 0daf4ae0dd195916202f6b32830a6efa12ad17d6..b1469b9a9e19fa56ac33992ba366fed6be9656e4 100644 (file)
@@ -2028,10 +2028,9 @@ _IO_vfscanf_internal (_IO_FILE *s, const char *format, _IO_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 or no exponent this is an error.  */
+            prefix this is an error.  */
          if (__builtin_expect (wpsize == 0
-                               || ((flags & HEXA_FLOAT)
-                                   && (wpsize == 2 || ! got_e)), 0))
+                               || ((flags & HEXA_FLOAT) && wpsize == 2), 0))
            conv_error ();
 
        scan_float: