|
|
@@ -33,7 +33,7 @@
|
|
|
temp_buffer = rindex (chld_out.line[i], ' '); \
|
|
|
addresses[n_addresses++] = check_new_address(temp_buffer); \
|
|
|
strncpy(query_found, querytype, sizeof(query_found)); \
|
|
|
- memset(query_found, '\0', sizeof(query_found));
|
|
|
+ query_found[sizeof(querytype)] = '\0';
|
|
|
|
|
|
const char *progname = "check_dns";
|
|
|
const char *copyright = "2000-2014";
|