summaryrefslogtreecommitdiffstats
path: root/gnu
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>1997-10-23 02:08:16 +0000
committerache <ache@FreeBSD.org>1997-10-23 02:08:16 +0000
commit43e60f18ddba317beb57ef3cd328e3cc9bc75fc4 (patch)
treeacefd3310d0dacf4303fe0eddc9a57a246334a56 /gnu
parent436deeda1a243078fb9907dfb57558f6d481936d (diff)
downloadFreeBSD-src-43e60f18ddba317beb57ef3cd328e3cc9bc75fc4.zip
FreeBSD-src-43e60f18ddba317beb57ef3cd328e3cc9bc75fc4.tar.gz
Add unsigned char cast to ctype macros
Diffstat (limited to 'gnu')
-rw-r--r--gnu/usr.bin/grep/grep.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gnu/usr.bin/grep/grep.c b/gnu/usr.bin/grep/grep.c
index 0353e26..8e93267 100644
--- a/gnu/usr.bin/grep/grep.c
+++ b/gnu/usr.bin/grep/grep.c
@@ -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 */
OpenPOWER on IntegriCloud