summaryrefslogtreecommitdiffstats
path: root/lib/libc/gen
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/gen')
-rw-r--r--lib/libc/gen/vis.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libc/gen/vis.c b/lib/libc/gen/vis.c
index 066ea2d..66954e7 100644
--- a/lib/libc/gen/vis.c
+++ b/lib/libc/gen/vis.c
@@ -51,6 +51,7 @@ vis(dst, c, flag, nextc)
int c, nextc;
register int flag;
{
+ c = (unsigned char)c;
if (isgraph(c) ||
((flag & VIS_SP) == 0 && c == ' ') ||
((flag & VIS_TAB) == 0 && c == '\t') ||
OpenPOWER on IntegriCloud