Skip to content
Snippets Groups Projects
Commit f4c6b29d authored by Mikael Djurfeldt's avatar Mikael Djurfeldt
Browse files

maybeProcessMusicARgv: Allocate new space for argv.

parent acafbba0
No related branches found
No related tags found
No related merge requests found
...@@ -252,10 +252,7 @@ namespace MUSIC { ...@@ -252,10 +252,7 @@ namespace MUSIC {
cmd = std::string (MUSIC_ARGV, s - MUSIC_ARGV); cmd = std::string (MUSIC_ARGV, s - MUSIC_ARGV);
argstring = std::string (s + 1); argstring = std::string (s + 1);
} }
char** newArgv = parseArgs (cmd, argstring, &argc); argv = parseArgs (cmd, argstring, &argc);
for (int i = 0; i < argc; ++i)
argv[i] = newArgv[i];
delete[] newArgv;
} }
} }
......
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