about summary refs log tree commit diff
path: root/stdio-common
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2007-04-27 19:28:32 +0000
committerUlrich Drepper <drepper@redhat.com>2007-04-27 19:28:32 +0000
commitbd9be6797769ae747e28bda38fd36ca8643c4298 (patch)
tree362082277934c69ed4b57d9c5064e12ad87a4858 /stdio-common
parentc536b9b83b544ca4104f2b1ff39f1a91d1e4d548 (diff)
downloadglibc-bd9be6797769ae747e28bda38fd36ca8643c4298.tar.gz
glibc-bd9be6797769ae747e28bda38fd36ca8643c4298.tar.xz
glibc-bd9be6797769ae747e28bda38fd36ca8643c4298.zip
(_IO_vfscanf_internal): Allow hexa-decimal floats without exponent.
Diffstat (limited to 'stdio-common')
-rw-r--r--stdio-common/vfscanf.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/stdio-common/vfscanf.c b/stdio-common/vfscanf.c
index 0daf4ae0dd..b1469b9a9e 100644
--- a/stdio-common/vfscanf.c
+++ b/stdio-common/vfscanf.c
@@ -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: