summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2013-11-25 18:06:32 +0000
committerderaadt <deraadt@openbsd.org>2013-11-25 18:06:32 +0000
commitbf019fccbdb52b5e201dd9ff77c7a2072bdff269 (patch)
tree863674f39d6a9a9cfed224d4f5ae1c75c986330a
parentimprove -Q usage and such. One usage change is that the option is now (diff)
downloadwireguard-openbsd-bf019fccbdb52b5e201dd9ff77c7a2072bdff269.tar.xz
wireguard-openbsd-bf019fccbdb52b5e201dd9ff77c7a2072bdff269.zip
obvious cast for isblank()
-rw-r--r--usr.bin/whois/whois.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/whois/whois.c b/usr.bin/whois/whois.c
index 080d1ccf1b1..1cce389aedd 100644
--- a/usr.bin/whois/whois.c
+++ b/usr.bin/whois/whois.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: whois.c,v 1.44 2013/03/05 16:09:10 sthen Exp $ */
+/* $OpenBSD: whois.c,v 1.45 2013/11/25 18:06:32 deraadt Exp $ */
/*
* Copyright (c) 1980, 1993
@@ -231,7 +231,7 @@ whois(const char *query, const char *server, const char *port, int flags)
if ((p = strstr(buf, WHOIS_SERVER_ID))) {
p += sizeof(WHOIS_SERVER_ID) - 1;
- while (isblank(*p))
+ while (isblank((unsigned char)*p))
p++;
if ((len = strcspn(p, " \t\n\r"))) {
if ((nhost = malloc(len + 1)) == NULL)