aboutsummaryrefslogtreecommitdiff
path: root/engines/cine
diff options
context:
space:
mode:
authorEugene Sandulenko2013-04-26 08:02:23 +0300
committerEugene Sandulenko2013-04-26 08:02:23 +0300
commita8a267b6681343cde3dfdaf3251953a3055fbdff (patch)
tree15876a449651bccae769f7f4fb5e9447323a4bd0 /engines/cine
parentf70509e20bb4fb809cff5ae4bb9fdc47dd85e1e0 (diff)
downloadscummvm-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.cpp2
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;