summaryrefslogtreecommitdiff
path: root/sbin/sysctl
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2013-11-22 04:12:49 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2013-11-22 04:12:49 +0000
commitf34a9f0a9d06ba7a8b2ff945df3a26db7970c69b (patch)
treed57205672d49f3cdb33f1fc9a1a8f910adf8c9f9 /sbin/sysctl
parent04e705a232d9b6abc44accfde7b9a33fe3e19510 (diff)
Whole bunch of (unsigned char) casts carefully added for ctype calls.
Careful second audit by millert
Diffstat (limited to 'sbin/sysctl')
-rw-r--r--sbin/sysctl/sysctl.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sbin/sysctl/sysctl.c b/sbin/sysctl/sysctl.c
index 894a61ff949..7d7c9b07029 100644
--- a/sbin/sysctl/sysctl.c
+++ b/sbin/sysctl/sysctl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sysctl.c,v 1.197 2013/11/15 22:20:04 millert Exp $ */
+/* $OpenBSD: sysctl.c,v 1.198 2013/11/22 04:12:48 deraadt Exp $ */
/* $NetBSD: sysctl.c,v 1.9 1995/09/30 07:12:50 thorpej Exp $ */
/*
@@ -311,7 +311,7 @@ parse(char *string, int flags)
if ((cp = strchr(string, '=')) != NULL) {
*strchr(buf, '=') = '\0';
*cp++ = '\0';
- while (isspace(*cp))
+ while (isspace((unsigned char)*cp))
cp++;
newval = cp;
newsize = strlen(cp);
@@ -2376,7 +2376,7 @@ sysctl_sensors(char *string, char **bufpp, int mib[], int flags, int *typep)
}
numt = -1;
for (i = 0; typename[i] != '\0'; i++)
- if (isdigit(typename[i])) {
+ if (isdigit((unsigned char)typename[i])) {
numt = atoi(&typename[i]);
typename[i] = '\0';
break;