summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--usr.bin/whois/whois.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/whois/whois.c b/usr.bin/whois/whois.c
index c6efe5c..1891359 100644
--- a/usr.bin/whois/whois.c
+++ b/usr.bin/whois/whois.c
@@ -246,8 +246,8 @@ whois(name, sinp, flags)
(p = strstr(buf, "No match for \""))) {
p += sizeof("No match for \"") - 1;
if ((len = strcspn(p, "\"")) &&
- name[len] == '\0' &&
strncasecmp(name, p, len) == 0 &&
+ name[len] == '\0' &&
strchr(name, '.') == NULL)
nomatch = 1;
}
OpenPOWER on IntegriCloud