mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-25 13:41:05 +00:00
Add a null pointer at the end of TimidityArgs
This actually got the execvp call working consistently for me; now I can listen to MIDI music in GZDoom again.
This commit is contained in:
parent
a4370a3529
commit
7ff0040f30
1 changed files with 2 additions and 1 deletions
|
@ -558,7 +558,8 @@ bool TimidityPPMIDIDevice::LaunchTimidity ()
|
|||
}
|
||||
strCount -= spaceInExePathCount;
|
||||
|
||||
char** TimidityArgs = new char*[strCount];
|
||||
char** TimidityArgs = new char*[strCount + 1];
|
||||
TimidityArgs[strCount] = NULL;
|
||||
|
||||
spaceIdx = CommandLine.IndexOf(' ');
|
||||
int curSpace = spaceIdx, i = 1;
|
||||
|
|
Loading…
Reference in a new issue