summaryrefslogtreecommitdiffstats
path: root/bin/ls
diff options
context:
space:
mode:
Diffstat (limited to 'bin/ls')
-rw-r--r--bin/ls/util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/ls/util.c b/bin/ls/util.c
index 172884c..65841b3 100644
--- a/bin/ls/util.c
+++ b/bin/ls/util.c
@@ -64,7 +64,7 @@ prn_printable(const char *s)
int n;
for (n = 0; (c = *s) != '\0'; ++s, ++n)
- if (isprint(c))
+ if (isprint((unsigned char)c))
putchar(c);
else
putchar('?');
OpenPOWER on IntegriCloud