aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Sandulenko2014-06-09 22:34:21 +0300
committerEugene Sandulenko2014-06-09 22:34:21 +0300
commitdf5ef5bf2e440de933685451a2b31dd3af695ecd (patch)
tree44ae9777974beab98835622f27128c7239a8b110
parentc41ebe6f452d40cb84359aeff909e21cf6c4db29 (diff)
downloadscummvm-rg350-df5ef5bf2e440de933685451a2b31dd3af695ecd.tar.gz
scummvm-rg350-df5ef5bf2e440de933685451a2b31dd3af695ecd.tar.bz2
scummvm-rg350-df5ef5bf2e440de933685451a2b31dd3af695ecd.zip
FULLPIPE: Safely copy strings
-rw-r--r--engines/fullpipe/sound.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/fullpipe/sound.cpp b/engines/fullpipe/sound.cpp
index 65c9bf84ca..a3f0f2a963 100644
--- a/engines/fullpipe/sound.cpp
+++ b/engines/fullpipe/sound.cpp
@@ -268,7 +268,7 @@ void FullpipeEngine::setSceneMusicParameters(GameVar *gvar) {
while (sub) {
if (_musicAllowed & sub->_value.intValue) {
- strcpy(_sceneTracks[_numSceneTracks], sub->_varName);
+ strncpy(_sceneTracks[_numSceneTracks], sub->_varName, 260);
_numSceneTracks++;
}