diff options
author | ache <ache@FreeBSD.org> | 1999-11-17 20:51:35 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 1999-11-17 20:51:35 +0000 |
commit | 28edb569492cfb3d3df167bbf2dff88832848ba6 (patch) | |
tree | 67811b97aa98feb4c9673a6ce71c888725f8606e /usr.bin/whois | |
parent | 3620b449a5f2cf74b4273b124c210529932a3ebd (diff) | |
download | FreeBSD-src-28edb569492cfb3d3df167bbf2dff88832848ba6.zip FreeBSD-src-28edb569492cfb3d3df167bbf2dff88832848ba6.tar.gz |
purity change for name length checking code
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 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; } |