summaryrefslogtreecommitdiffstats
path: root/usr.bin/talk
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>1996-04-03 07:47:35 +0000
committerache <ache@FreeBSD.org>1996-04-03 07:47:35 +0000
commit341755dd21afbd780207222ff660f83a09082946 (patch)
treec8400a8c7190ecc4f829c5ac480d424de1a269a5 /usr.bin/talk
parent3df8f69d632b4601015a3cac380832984cd2052d (diff)
downloadFreeBSD-src-341755dd21afbd780207222ff660f83a09082946.zip
FreeBSD-src-341755dd21afbd780207222ff660f83a09082946.tar.gz
Cast to unsigned char instead of unsigned
Cast ctype argument to unsigned char
Diffstat (limited to 'usr.bin/talk')
-rw-r--r--usr.bin/talk/display.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/talk/display.c b/usr.bin/talk/display.c
index ed4e5ab..aabb581 100644
--- a/usr.bin/talk/display.c
+++ b/usr.bin/talk/display.c
@@ -146,13 +146,13 @@ display(win, text, size)
text++;
continue;
}
- if (!isprint(*text) && *text != '\t') {
+ if (!isprint((unsigned char)*text) && *text != '\t') {
waddch(win->x_win, '^');
getyx(win->x_win, win->x_line, win->x_col);
cch = (*text & 63) + 64;
waddch(win->x_win, cch);
} else
- waddch(win->x_win, (unsigned)*text);
+ waddch(win->x_win, (unsigned char)*text);
getyx(win->x_win, win->x_line, win->x_col);
text++;
}
OpenPOWER on IntegriCloud