diff options
author | ache <ache@FreeBSD.org> | 1997-10-23 02:08:16 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 1997-10-23 02:08:16 +0000 |
commit | 43e60f18ddba317beb57ef3cd328e3cc9bc75fc4 (patch) | |
tree | acefd3310d0dacf4303fe0eddc9a57a246334a56 | |
parent | 436deeda1a243078fb9907dfb57558f6d481936d (diff) | |
download | FreeBSD-src-43e60f18ddba317beb57ef3cd328e3cc9bc75fc4.zip FreeBSD-src-43e60f18ddba317beb57ef3cd328e3cc9bc75fc4.tar.gz |
Add unsigned char cast to ctype macros
-rw-r--r-- | gnu/usr.bin/grep/grep.c | 2 |
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 */ |