2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 14:35:26 +00:00

[master] don't use strncasecmp for command line option

This commit is contained in:
Evan Hunt
2014-03-03 09:31:41 -08:00
parent 67d01dcacb
commit f4ada59b35

View 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) {