mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-15 17:22:12 +00:00
Merge branch 'musicplus-strtok' into 'master'
Use strtok instead of strtok_r See merge request STJr/SRB2Internal!286
This commit is contained in:
commit
088f39adbd
1 changed files with 5 additions and 1 deletions
|
@ -163,7 +163,10 @@ static void MidiSoundfontPath_Onchange(void)
|
|||
boolean proceed = true;
|
||||
// check if file exists; menu calls this method at every keystroke
|
||||
|
||||
while ((miditoken = strtok_r(source, ";", &source)))
|
||||
// get first token
|
||||
miditoken = strtok(source, ";");
|
||||
|
||||
while (miditoken != NULL)
|
||||
{
|
||||
SDL_RWops *rw = SDL_RWFromFile(miditoken, "r");
|
||||
if (rw != NULL)
|
||||
|
@ -173,6 +176,7 @@ static void MidiSoundfontPath_Onchange(void)
|
|||
proceed = false;
|
||||
break;
|
||||
}
|
||||
miditoken = strtok(NULL, ";");
|
||||
}
|
||||
|
||||
free(source);
|
||||
|
|
Loading…
Reference in a new issue