Commit 73b4d7eb authored by unknown's avatar unknown

fix issue with IM that causes commandlines that are executed to be incorrect.


server-tools/instance-manager/instance.cc:
  terminate the new line buffer so our strcat's will work
parent abd77bc5
...@@ -180,7 +180,8 @@ static int start_process(Instance_options *instance_options, ...@@ -180,7 +180,8 @@ static int start_process(Instance_options *instance_options,
char *cmdline= new char[cmdlen]; char *cmdline= new char[cmdlen];
if (cmdline == NULL) if (cmdline == NULL)
return 1; return 1;
cmdline[0]= 0;
for (int i= 0; instance_options->argv[i] != 0; i++) for (int i= 0; instance_options->argv[i] != 0; i++)
{ {
strcat(cmdline, "\""); strcat(cmdline, "\"");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment