Add unsigned char cast to ctype macros

This commit is contained in:
Andrey A. Chernov 1997-10-23 02:08:16 +00:00
parent 833c9488dd
commit 62fe88f9af

View File

@ -532,7 +532,7 @@ int isBinaryFile(fd)
/* look for non-printable chars */
for(i = 0; i < n; i++)
if (!isprint(buf[i]) && !isspace(buf[i]))
if (!isprint((unsigned char)buf[i]) && !isspace((unsigned char)buf[i]))
return(1);
/* reset fd to begin of file */