diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2013-11-26 13:21:19 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2013-11-26 13:21:19 +0000 |
commit | 42f68a7a6d855d973bf3c59d10e6519e0240d4f2 (patch) | |
tree | 64c16d6722fec7697ed1e37a4adecbda0314e831 /usr.bin/head | |
parent | 9c87bfa9d5ea46fd4fe5c8edb947aec28e748573 (diff) |
unsigned char casts for ctype
ok krw
Diffstat (limited to 'usr.bin/head')
-rw-r--r-- | usr.bin/head/head.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/head/head.c b/usr.bin/head/head.c index 994c6902d60..e1c0a4734e5 100644 --- a/usr.bin/head/head.c +++ b/usr.bin/head/head.c @@ -1,4 +1,4 @@ -/* $OpenBSD: head.c,v 1.15 2009/10/27 23:59:38 deraadt Exp $ */ +/* $OpenBSD: head.c,v 1.16 2013/11/26 13:21:17 deraadt Exp $ */ /* * Copyright (c) 1980, 1987 Regents of the University of California. @@ -54,7 +54,8 @@ main(int argc, char *argv[]) char *p = NULL; /* 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])) { p = argv[1] + 1; argc--; argv++; |