diff options
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; } |