mirror of
https://github.com/MariaDB/server.git
synced 2025-08-07 00:04:31 +03:00
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
This commit is contained in:
@@ -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, "\"");
|
||||||
|
Reference in New Issue
Block a user