diff options
Diffstat (limited to 'lib.c')
-rw-r--r-- | lib.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -889,7 +889,7 @@ bool is_valid_number(const char *s, bool trailing_stuff_ok, s++; /* no hex floating point, sorry */ - if (s[0] == '0' && tolower(s[1]) == 'x') + if (s[0] == '0' && tolower(s[1]) == 'x' && isxdigit(s[2])) return false; /* allow +nan, -nan, +inf, -inf, any other letter, no */ |