From b79aefd3e92552cd560f495b87f651f7e7eca46e Mon Sep 17 00:00:00 2001 From: "Andrey A. Chernov" Date: Sat, 14 Apr 2007 14:32:48 +0000 Subject: [PATCH] Use proper type cast for ctype macro --- usr.bin/whois/whois.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.bin/whois/whois.c b/usr.bin/whois/whois.c index 1412687987ec..c21655625175 100644 --- a/usr.bin/whois/whois.c +++ b/usr.bin/whois/whois.c @@ -341,7 +341,7 @@ whois(const char *query, const char *hostname, int flags) (int)(buf + len - host), host); } else if (strcmp(hostname, ANICHOST) == 0) { for (c = 0; c <= len; c++) - buf[c] = tolower((int)buf[c]); + buf[c] = tolower((unsigned char)buf[c]); for (i = 0; ip_whois[i] != NULL; i++) { if (strnstr(buf, ip_whois[i], len) != NULL) {