From a9f992033fc32c0cca125e80d3d96aacfc78b802 Mon Sep 17 00:00:00 2001 From: Karl DeBisschop Date: Fri, 8 Aug 2003 05:09:40 +0000 Subject: fix a variety of compiler warnings about qualifier discards and other pedantic stuff git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@663 f882894a-f735-0410-b71e-b25c423dba1c --- plugins/check_by_ssh.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/check_by_ssh.c') diff --git a/plugins/check_by_ssh.c b/plugins/check_by_ssh.c index 8527b727..59e8ea0c 100644 --- a/plugins/check_by_ssh.c +++ b/plugins/check_by_ssh.c @@ -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")); -- cgit v1.2.3-74-g34f1