diff options
Diffstat (limited to 'engines/draci/music.cpp')
-rw-r--r-- | engines/draci/music.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/engines/draci/music.cpp b/engines/draci/music.cpp index 6f3e3c8384..3179c79ca4 100644 --- a/engines/draci/music.cpp +++ b/engines/draci/music.cpp @@ -80,9 +80,8 @@ void MusicPlayer::playSMF(int track, bool loop) { // Load MIDI resource data Common::File musicFile; - char musicFileName[40]; - snprintf(musicFileName, sizeof(musicFileName), _pathMask.c_str(), track); - musicFile.open(musicFileName); + Common::String musicFileName = Common::String::format(_pathMask.c_str(), track); + musicFile.open(musicFileName.c_str()); if (!musicFile.isOpen()) { debugC(2, kDraciSoundDebugLevel, "Cannot open track %d", track); return; |