diff options
| author | Andrey A. Chernov <ache@FreeBSD.org> | 1997-10-23 02:08:16 +0000 |
|---|---|---|
| committer | Andrey A. Chernov <ache@FreeBSD.org> | 1997-10-23 02:08:16 +0000 |
| commit | 62fe88f9af29c05efe08800cd651e4ea3cc741bb (patch) | |
| tree | 14fe8987948ea28ce4c2c771ad272f7c43b832ed /gnu | |
| parent | 833c9488dd44d8896114eb3295cd3c484ae8aeb5 (diff) | |
Notes
Diffstat (limited to 'gnu')
| -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 0353e26a33e1..8e93267ccdf2 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 */ |
