diff --git a/plugins/check_by_ssh.c b/plugins/check_by_ssh.c
index 8527b727e1df458d4a388dd435ded0b75c731d4f..59e8ea0ca42e8491ff8fa224fa27b53800de3c08 100644 (file)
--- a/plugins/check_by_ssh.c
+++ b/plugins/check_by_ssh.c
}
if (commands > 1)
- remotecmd = strscat (remotecmd, ";echo STATUS CODE: $?;");
+ asprintf (&remotecmd, "%s;echo STATUS CODE: $?;", remotecmd);
if (remotecmd == NULL || strlen (remotecmd) <= 1)
usage (_("No remotecmd\n"));