summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdio
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>2001-11-28 06:06:27 +0000
committerache <ache@FreeBSD.org>2001-11-28 06:06:27 +0000
commit3a5ef923430736453c2e3800277c2558c14e0f25 (patch)
tree7fda1da266f5c4d254c366b8856290fa9ad01569 /lib/libc/stdio
parentf320d6c29a634f799998ac539ecc1fc1f261e4c5 (diff)
downloadFreeBSD-src-3a5ef923430736453c2e3800277c2558c14e0f25.zip
FreeBSD-src-3a5ef923430736453c2e3800277c2558c14e0f25.tar.gz
Don't ever assume that isdigit() is always subset of isxdigit()
Diffstat (limited to 'lib/libc/stdio')
-rw-r--r--lib/libc/stdio/vfscanf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/stdio/vfscanf.c b/lib/libc/stdio/vfscanf.c
index 3925aa5..6072112 100644
--- a/lib/libc/stdio/vfscanf.c
+++ b/lib/libc/stdio/vfscanf.c
@@ -488,7 +488,7 @@ literal:
break;
default:
- if (!isxdigit(c))
+ if (!isdigit(c) && (base != 16 || !isxdigit(c)))
break;
n = digittoint(c);
if (n >= 16)
OpenPOWER on IntegriCloud