summaryrefslogtreecommitdiffstats
path: root/plugins/check_fping.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/check_fping.c')
-rw-r--r--plugins/check_fping.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/plugins/check_fping.c b/plugins/check_fping.c
index 9a2dd55..da11e67 100644
--- a/plugins/check_fping.c
+++ b/plugins/check_fping.c
@@ -71,9 +71,8 @@ main (int argc, char **argv)
71 server = strscpy (server, server_name); 71 server = strscpy (server, server_name);
72 72
73 /* compose the command */ 73 /* compose the command */
74 command_line = ssprintf 74 asprintf (&command_line, "%s -b %d -c %d %s", PATH_TO_FPING,
75 (command_line, "%s -b %d -c %d %s", 75 packet_size, packet_count, server);
76 PATH_TO_FPING, packet_size, packet_count, server);
77 76
78 if (verbose) 77 if (verbose)
79 printf ("%s\n", command_line); 78 printf ("%s\n", command_line);