diff options
author | Eugene Sandulenko | 2013-04-26 08:02:23 +0300 |
---|---|---|
committer | Eugene Sandulenko | 2013-04-26 08:02:23 +0300 |
commit | a8a267b6681343cde3dfdaf3251953a3055fbdff (patch) | |
tree | 15876a449651bccae769f7f4fb5e9447323a4bd0 /engines/cine | |
parent | f70509e20bb4fb809cff5ae4bb9fdc47dd85e1e0 (diff) | |
download | scummvm-rg350-a8a267b6681343cde3dfdaf3251953a3055fbdff.tar.gz scummvm-rg350-a8a267b6681343cde3dfdaf3251953a3055fbdff.tar.bz2 scummvm-rg350-a8a267b6681343cde3dfdaf3251953a3055fbdff.zip |
CINE: Null terminate string. CID 1003884
Diffstat (limited to 'engines/cine')
-rw-r--r-- | engines/cine/script_fw.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/cine/script_fw.cpp b/engines/cine/script_fw.cpp index b4fe68c343..209cda72b6 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; |