check_dns: buffer overflow fix
~/nagios-plugins-2.4.4/plugins# ./check_dns -H google.com -n -q CNAME
*** buffer overflow detected ***: terminated
Aborted (core dumped)
check_dns CNAME query type is currently hitting a buffer overflow on Ubuntu 22.04.
char query_type[16] = "";
This commit increases the size of the query_type array to 17 bytes which allows enough space to hold the entire string "CNAME" plus the "-querytype=" prefix and the null terminator, so there is no buffer overflow and the program runs without crashing.