diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2013-11-20 20:55:10 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2013-11-20 20:55:10 +0000 |
commit | eb427fbee490ef6d4afc4838621489ea4d62ef81 (patch) | |
tree | 8d4231e33351ad9162094d4cc53715fe69c8cf15 /usr.bin | |
parent | c507b95ebf77817b439f55542b0932c60c420a4c (diff) |
unsigned char casts with ctype macros are pretty obvious when dealing
with argv or optarg
ok ratchov
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/cu/cu.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/cu/cu.c b/usr.bin/cu/cu.c index f16206880fc..e0feb21ca40 100644 --- a/usr.bin/cu/cu.c +++ b/usr.bin/cu/cu.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cu.c,v 1.14 2013/04/24 16:01:10 tedu Exp $ */ +/* $OpenBSD: cu.c,v 1.15 2013/11/20 20:55:09 deraadt Exp $ */ /* * Copyright (c) 2012 Nicholas Marriott <nicm@openbsd.org> @@ -84,7 +84,7 @@ main(int argc, char **argv) for (i = 1; i < argc; i++) { if (strcmp("--", argv[i]) == 0) break; - if (argv[i][0] != '-' || !isdigit(argv[i][1])) + if (argv[i][0] != '-' || !isdigit((unsigned char)argv[i][1])) continue; if (asprintf(&argv[i], "-s%s", &argv[i][1]) == -1) |