summaryrefslogtreecommitdiffstats
path: root/usr.bin/netstat/main.c
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2013-11-20 21:34:25 +0000
committerderaadt <deraadt@openbsd.org>2013-11-20 21:34:25 +0000
commit8093eec780eb67d649d590225f5b03f4fffc2472 (patch)
tree2cff43d2860bb374158236d8bdb51313742bcea5 /usr.bin/netstat/main.c
parentunsigned char casts for ctype.h macros, when dealing with the (diff)
downloadwireguard-openbsd-8093eec780eb67d649d590225f5b03f4fffc2472.tar.xz
wireguard-openbsd-8093eec780eb67d649d590225f5b03f4fffc2472.zip
unsigned char cast for isdigit, dealing with argv
ok benno
Diffstat (limited to 'usr.bin/netstat/main.c')
-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();