aboutsummaryrefslogtreecommitdiff
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 9a2dd557..da11e678 100644
--- a/plugins/check_fping.c
+++ b/plugins/check_fping.c
@@ -71,9 +71,8 @@ main (int argc, char **argv)
server = strscpy (server, server_name);
/* compose the command */
- command_line = ssprintf
- (command_line, "%s -b %d -c %d %s",
- PATH_TO_FPING, packet_size, packet_count, server);
+ asprintf (&command_line, "%s -b %d -c %d %s", PATH_TO_FPING,
+ packet_size, packet_count, server);
if (verbose)
printf ("%s\n", command_line);