From 62fe88f9af29c05efe08800cd651e4ea3cc741bb Mon Sep 17 00:00:00 2001 From: "Andrey A. Chernov" Date: Thu, 23 Oct 1997 02:08:16 +0000 Subject: [PATCH] Add unsigned char cast to ctype macros --- gnu/usr.bin/grep/grep.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gnu/usr.bin/grep/grep.c b/gnu/usr.bin/grep/grep.c index 0353e26a33e..8e93267ccdf 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 */