summaryrefslogtreecommitdiffstats
path: root/plugins/check_by_ssh.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/check_by_ssh.c')
-rw-r--r--plugins/check_by_ssh.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/check_by_ssh.c b/plugins/check_by_ssh.c
index 8527b72..59e8ea0 100644
--- a/plugins/check_by_ssh.c
+++ b/plugins/check_by_ssh.c
@@ -291,7 +291,7 @@ process_arguments (int argc, char **argv)
291 } 291 }
292 292
293 if (commands > 1) 293 if (commands > 1)
294 remotecmd = strscat (remotecmd, ";echo STATUS CODE: $?;"); 294 asprintf (&remotecmd, "%s;echo STATUS CODE: $?;", remotecmd);
295 295
296 if (remotecmd == NULL || strlen (remotecmd) <= 1) 296 if (remotecmd == NULL || strlen (remotecmd) <= 1)
297 usage (_("No remotecmd\n")); 297 usage (_("No remotecmd\n"));