summaryrefslogtreecommitdiffstats
path: root/plugins/check_dns.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/check_dns.c')
-rw-r--r--plugins/check_dns.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/check_dns.c b/plugins/check_dns.c
index f9cf288..714ecab 100644
--- a/plugins/check_dns.c
+++ b/plugins/check_dns.c
@@ -88,7 +88,7 @@ main (int argc, char **argv)
88 } 88 }
89 89
90 /* get the command to run */ 90 /* get the command to run */
91 sprintf (&command_line, "%s %s %s", NSLOOKUP_COMMAND, query_address, dns_server); 91 asprintf (&command_line, "%s %s %s", NSLOOKUP_COMMAND, query_address, dns_server);
92 92
93 alarm (timeout_interval); 93 alarm (timeout_interval);
94 time (&start_time); 94 time (&start_time);