diff options
author | Vincent Bénony | 2016-01-06 10:01:09 +0100 |
---|---|---|
committer | Vincent Bénony | 2016-01-06 16:20:29 +0100 |
commit | 9adf7cd57030053f39c84fdcf3037c7184212e63 (patch) | |
tree | 87b8dc7c53323562542cae32665ed4270e3d6d58 /audio/softsynth | |
parent | 25f3299757736e99dfc52bfc2de5f5bb9f4e6294 (diff) | |
download | scummvm-rg350-9adf7cd57030053f39c84fdcf3037c7184212e63.tar.gz scummvm-rg350-9adf7cd57030053f39c84fdcf3037c7184212e63.tar.bz2 scummvm-rg350-9adf7cd57030053f39c84fdcf3037c7184212e63.zip |
IOS: Uses Common::String instead of plain C string
Diffstat (limited to 'audio/softsynth')
-rw-r--r-- | audio/softsynth/fluidsynth.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/audio/softsynth/fluidsynth.cpp b/audio/softsynth/fluidsynth.cpp index 372a370db4..b776c04738 100644 --- a/audio/softsynth/fluidsynth.cpp +++ b/audio/softsynth/fluidsynth.cpp @@ -185,11 +185,9 @@ int MidiDriver_FluidSynth::open() { const char *soundfont = ConfMan.get("soundfont").c_str(); #ifdef IPHONE_OFFICIAL - char *soundfont_fullpath[PATH_MAX]; - const char *document_path = iOS7_getDocumentsDir(); - strcpy((char *) soundfont_fullpath, document_path); - strcat((char *) soundfont_fullpath, soundfont); - _soundFont = fluid_synth_sfload(_synth, (const char *) soundfont_fullpath, 1); + Common::String soundfont_fullpath = iOS7_getDocumentsDir(); + soundfont_fullpath += soundfont; + _soundFont = fluid_synth_sfload(_synth, soundfont_fullpath.c_str(), 1); #else _soundFont = fluid_synth_sfload(_synth, soundfont, 1); #endif |