diff options
author | ache <ache@FreeBSD.org> | 2007-04-14 14:32:48 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 2007-04-14 14:32:48 +0000 |
commit | 1104f500b1ed9bd4128dbccf68442967d2a5f066 (patch) | |
tree | 2e549103d1a81d324cb057a8180812d29676d23a /usr.bin/whois | |
parent | 8dea6eb551705418618e5d68bee96d521d326dc6 (diff) | |
download | FreeBSD-src-1104f500b1ed9bd4128dbccf68442967d2a5f066.zip FreeBSD-src-1104f500b1ed9bd4128dbccf68442967d2a5f066.tar.gz |
Use proper type cast for ctype macro
Diffstat (limited to 'usr.bin/whois')
-rw-r--r-- | usr.bin/whois/whois.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/whois/whois.c b/usr.bin/whois/whois.c index 1412687..c216556 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) { |