diff options
Diffstat (limited to 'plugins/check_ping.c')
-rw-r--r-- | plugins/check_ping.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/plugins/check_ping.c b/plugins/check_ping.c index df1d9eb..3602122 100644 --- a/plugins/check_ping.c +++ b/plugins/check_ping.c | |||
@@ -88,11 +88,9 @@ main (int argc, char **argv) | |||
88 | 88 | ||
89 | /* does the host address of number of packets argument come first? */ | 89 | /* does the host address of number of packets argument come first? */ |
90 | #ifdef PING_PACKETS_FIRST | 90 | #ifdef PING_PACKETS_FIRST |
91 | command_line = | 91 | asprintf (&command_line, PING_COMMAND, max_packets, server_address); |
92 | ssprintf (command_line, PING_COMMAND, max_packets, server_address); | ||
93 | #else | 92 | #else |
94 | command_line = | 93 | asprintf (&command_line, PING_COMMAND, server_address, max_packets); |
95 | ssprintf (command_line, PING_COMMAND, server_address, max_packets); | ||
96 | #endif | 94 | #endif |
97 | 95 | ||
98 | /* Set signal handling and alarm */ | 96 | /* Set signal handling and alarm */ |