summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2013-11-20 21:34:26 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2013-11-20 21:34:26 +0000
commitc05cf462d118fcde66428d72d471de60d450f294 (patch)
tree8ef6cb1c9146ad878f224dbce1dcd7a0fc5e4792
parent9924da183be66b165cde69fbcbc484845ba138ba (diff)
unsigned char cast for isdigit, dealing with argv
ok benno
-rw-r--r--usr.bin/netstat/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/netstat/main.c b/usr.bin/netstat/main.c
index ceb25c54211..e0434702681 100644
--- a/usr.bin/netstat/main.c
+++ b/usr.bin/netstat/main.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: main.c,v 1.97 2013/10/28 19:59:25 deraadt Exp $ */
+/* $OpenBSD: main.c,v 1.98 2013/11/20 21:34:25 deraadt Exp $ */
/* $NetBSD: main.c,v 1.9 1996/05/07 02:55:02 thorpej Exp $ */
/*
@@ -317,7 +317,7 @@ main(int argc, char *argv[])
#define BACKWARD_COMPATIBILITY
#ifdef BACKWARD_COMPATIBILITY
if (*argv) {
- if (isdigit(**argv)) {
+ if (isdigit((unsigned char)**argv)) {
interval = atoi(*argv);
if (interval <= 0)
usage();