summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2013-11-20 20:46:47 +0000
committerderaadt <deraadt@openbsd.org>2013-11-20 20:46:47 +0000
commit6d31124607fa0138f1ed936ad4800d300008b67b (patch)
treeead93d22ec4a88bfcf9ea00c7653e3c6f26eb7f9
parentspelling fix; (diff)
downloadwireguard-openbsd-6d31124607fa0138f1ed936ad4800d300008b67b.tar.xz
wireguard-openbsd-6d31124607fa0138f1ed936ad4800d300008b67b.zip
isxdigit() needs unsigned char cast for this specific argument
ok ratchov
-rw-r--r--usr.bin/printf/printf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/printf/printf.c b/usr.bin/printf/printf.c
index 7973018ae94..ea536015850 100644
--- a/usr.bin/printf/printf.c
+++ b/usr.bin/printf/printf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: printf.c,v 1.18 2011/06/18 02:36:22 guenther Exp $ */
+/* $OpenBSD: printf.c,v 1.19 2013/11/20 20:46:47 deraadt Exp $ */
/*
* Copyright (c) 1989 The Regents of the University of California.
@@ -291,7 +291,7 @@ print_escape(const char *str)
case 'x':
str++;
- for (value = 0; isxdigit(*str); str++) {
+ for (value = 0; isxdigit((unsigned char)*str); str++) {
value <<= 4;
value += hextobin(*str);
}