summaryrefslogtreecommitdiff
path: root/usr.bin/nice/nice.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2013-11-20 20:52:13 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2013-11-20 20:52:13 +0000
commit88e5ac60048b333effb71fe9e7b3c3926a1f7cf1 (patch)
tree7766ca7a362bd85172bcdbb0c8ff26d0c672a163 /usr.bin/nice/nice.c
parent21f847debf6f982368034f297e987229b2316058 (diff)
this isdigit() needs an unsigned char cast; ok ratchov
Diffstat (limited to 'usr.bin/nice/nice.c')
-rw-r--r--usr.bin/nice/nice.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/nice/nice.c b/usr.bin/nice/nice.c
index dcb922efe5e..6ff79db39e8 100644
--- a/usr.bin/nice/nice.c
+++ b/usr.bin/nice/nice.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: nice.c,v 1.11 2009/10/27 23:59:41 deraadt Exp $ */
+/* $OpenBSD: nice.c,v 1.12 2013/11/20 20:52:12 deraadt Exp $ */
/* $NetBSD: nice.c,v 1.9 1995/08/31 23:30:58 jtc Exp $ */
/*
@@ -54,7 +54,7 @@ main(int argc, char *argv[])
setlocale(LC_ALL, "");
/* handle obsolete -number syntax */
- if (argc > 1 && argv[1][0] == '-' && isdigit(argv[1][1])) {
+ if (argc > 1 && argv[1][0] == '-' && isdigit((unsigned char)argv[1][1])) {
niceness = atoi(argv[1] + 1);
argc--;
argv++;