summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormmcc <mmcc@openbsd.org>2015-10-24 17:56:42 +0000
committermmcc <mmcc@openbsd.org>2015-10-24 17:56:42 +0000
commite6743bfe73e9088235e1ca6db74eff2b29c47421 (patch)
tree0039d10e5ec866bb044c5b9e47d88ec67380092e
parentCast islower()'s argument to unsigned char. (diff)
downloadwireguard-openbsd-e6743bfe73e9088235e1ca6db74eff2b29c47421.tar.xz
wireguard-openbsd-e6743bfe73e9088235e1ca6db74eff2b29c47421.zip
Cast isdigit()'s argument to unsigned char.
ok guenther@
-rw-r--r--games/hack/hack.options.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/games/hack/hack.options.c b/games/hack/hack.options.c
index 18e96cb6a00..2134589313b 100644
--- a/games/hack/hack.options.c
+++ b/games/hack/hack.options.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: hack.options.c,v 1.10 2015/09/27 05:13:11 guenther Exp $ */
+/* $OpenBSD: hack.options.c,v 1.11 2015/10/24 17:56:42 mmcc Exp $ */
/*
* Copyright (c) 1985, Stichting Centrum voor Wiskunde en Informatica,
@@ -178,9 +178,9 @@ parseoptions(char *opts, boolean from_env)
op++;
while(*op) {
num = 1;
- if(isdigit(*op)) {
+ if(isdigit((unsigned char)*op)) {
num = atoi(op);
- while(isdigit(*op)) op++;
+ while(isdigit((unsigned char)*op)) op++;
} else
if(*op == '!') {
negated = !negated;