diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2013-11-20 21:33:18 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2013-11-20 21:33:18 +0000 |
commit | 1fd1a71399c3446254a6a4491faab9da4dc7863f (patch) | |
tree | 498810719874f000fdbd0efe1468f7b988416cb3 /usr.bin/cal | |
parent | 3f5d52b467aa1e73045d7a5d4eda72ba96249674 (diff) |
unsigned char casts are needed for these isdigit & isprint calls
ok benno
Diffstat (limited to 'usr.bin/cal')
-rw-r--r-- | usr.bin/cal/cal.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/cal/cal.c b/usr.bin/cal/cal.c index 27fc2e59e50..2af04fe7e70 100644 --- a/usr.bin/cal/cal.c +++ b/usr.bin/cal/cal.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cal.c,v 1.25 2009/10/27 23:59:36 deraadt Exp $ */ +/* $OpenBSD: cal.c,v 1.26 2013/11/20 21:33:17 deraadt Exp $ */ /* $NetBSD: cal.c,v 1.6 1995/03/26 03:10:24 glass Exp $ */ /* @@ -197,7 +197,7 @@ main(int argc, char *argv[]) errx(1, "Unable to parse month"); /* FALLTHROUGH */ case 1: - if (argc == 1 && !isdigit(*argv[0])) { + if (argc == 1 && !isdigit((unsigned char)*argv[0])) { month = parsemonth(*argv); if (!month) errx(1, "illegal year value: use 1-9999"); @@ -519,7 +519,7 @@ trim_trailing_spaces(char *s) for (p = s; *p; ++p) continue; - while (p > s && isspace(*--p)) + while (p > s && isspace((unsigned char)*--p)) continue; if (p > s) ++p; |