]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
[master] don't use strncasecmp for command line option
authorEvan Hunt <each@isc.org>
Mon, 3 Mar 2014 17:31:41 +0000 (09:31 -0800)
committerEvan Hunt <each@isc.org>
Mon, 3 Mar 2014 17:31:41 +0000 (09:31 -0800)
bin/dig/nslookup.c

index 3e709af160fc5903db58f91096020f85c50d9d16..78239cdb7d8ba6050efcf1b83981b20eb26fd20f 100644 (file)
@@ -754,7 +754,7 @@ do_next_command(char *input) {
                show_settings(ISC_TRUE, ISC_TRUE);
        } else if (strcasecmp(ptr, "exit") == 0) {
                in_use = ISC_FALSE;
-       } else if (strncasecmp(ptr, "ver", 3) == 0) {
+       } else if (strcasecmp(ptr, "version") == 0) {
                version();
        } else if (strcasecmp(ptr, "help") == 0 ||
                   strcasecmp(ptr, "?") == 0) {