diff options
Diffstat (limited to 'engines/cine/script_fw.cpp')
-rw-r--r-- | engines/cine/script_fw.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/cine/script_fw.cpp b/engines/cine/script_fw.cpp index b4fe68c343..176380c14f 100644 --- a/engines/cine/script_fw.cpp +++ b/engines/cine/script_fw.cpp @@ -1727,7 +1727,7 @@ int FWScript::o1_loadMusic() { debugC(5, kCineDebugScript, "Line: %d: loadMusic(%s)", _line, param); g_sound->loadMusic(param); - strncpy(currentDatName, param, 30); + Common::strlcpy(currentDatName, param, 30); musicIsPlaying = 0; return 0; @@ -1868,7 +1868,7 @@ int FWScript::o1_playSampleSwapped() { // since the only stereo output it supports should be the Roland MT-32. // So it probably does the same as o1_playSample here. Checking this will // be a good idea never the less. - if (g_cine->getPlatform() == Common::kPlatformPC) { + if (g_cine->getPlatform() == Common::kPlatformDOS) { return o1_playSample(); } |