Code

fix a variety of compiler warnings about qualifier discards and other pedantic stuff
[nagiosplug.git] / plugins / check_by_ssh.c
index 8527b727e1df458d4a388dd435ded0b75c731d4f..59e8ea0ca42e8491ff8fa224fa27b53800de3c08 100644 (file)
@@ -291,7 +291,7 @@ process_arguments (int argc, char **argv)
        }
 
        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"));