diff options
author | 2013-11-20 21:34:25 +0000 | |
---|---|---|
committer | 2013-11-20 21:34:25 +0000 | |
commit | 8093eec780eb67d649d590225f5b03f4fffc2472 (patch) | |
tree | 2cff43d2860bb374158236d8bdb51313742bcea5 /usr.bin/netstat/main.c | |
parent | unsigned char casts for ctype.h macros, when dealing with the (diff) | |
download | wireguard-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.c | 4 |
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(); |