Use proper type cast for ctype macro
This commit is contained in:
parent
8dea6eb551
commit
1104f500b1
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user