diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2013-11-21 15:54:47 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2013-11-21 15:54:47 +0000 |
commit | da0eb85667ace37db4ee0c23068caca3030d9827 (patch) | |
tree | 18efe03a97700948a6a7b8e1f89a5f623ff521d4 /bin/ls | |
parent | 52a4180aab8992aa7ddcd4f1d80e240a642bf836 (diff) |
add unsigned char casts for specific calls to ctype.h macros.
ok guenther step
Diffstat (limited to 'bin/ls')
-rw-r--r-- | bin/ls/util.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/ls/util.c b/bin/ls/util.c index 869a6b3ec2e..6ba1a7e2cee 100644 --- a/bin/ls/util.c +++ b/bin/ls/util.c @@ -1,4 +1,4 @@ -/* $OpenBSD: util.c,v 1.15 2011/03/04 21:03:19 okan Exp $ */ +/* $OpenBSD: util.c,v 1.16 2013/11/21 15:54:45 deraadt Exp $ */ /* $NetBSD: util.c,v 1.12 1995/09/07 06:43:02 jtc Exp $ */ /* @@ -51,7 +51,7 @@ putname(char *name) int len; for (len = 0; *name; len++, name++) - putchar((!isprint(*name) && f_nonprint) ? '?' : *name); + putchar((!isprint((unsigned char)*name) && f_nonprint) ? '?' : *name); return len; } |