mirror of
https://github.com/opnsense/src.git
synced 2026-06-11 01:30:30 -04:00
Add unsigned char cast to ctype macros
This commit is contained in:
parent
833c9488dd
commit
62fe88f9af
1 changed files with 1 additions and 1 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Reference in a new issue