Convert int to uchar range for ctype

This commit is contained in:
Andrey A. Chernov 1996-03-25 14:32:30 +00:00
parent f905bd5001
commit fe5fcbc78f

View File

@ -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') ||