From: Ulrich Drepper Date: Sun, 15 Aug 1999 20:13:55 +0000 (+0000) Subject: Don't recognize hexadecimal floats without exponent. X-Git-Tag: cvs/glibc_2-1-2~157 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3f0c5820cf363872ae7f41999dce20c329c7ff8c;p=thirdparty%2Fglibc.git Don't recognize hexadecimal floats without exponent. --- diff --git a/stdio-common/vfscanf.c b/stdio-common/vfscanf.c index 2e8cf9f5f5d..db08a3dc8cd 100644 --- a/stdio-common/vfscanf.c +++ b/stdio-common/vfscanf.c @@ -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: