diff options
-rw-r--r-- | engines/fullpipe/modal.cpp | 2 | ||||
-rw-r--r-- | engines/fullpipe/sound.cpp | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/engines/fullpipe/modal.cpp b/engines/fullpipe/modal.cpp index 3dbbeb78c4..6f99200529 100644 --- a/engines/fullpipe/modal.cpp +++ b/engines/fullpipe/modal.cpp @@ -1596,7 +1596,7 @@ void ModalSaveGame::setup(Scene *sc, int mode) { fileinfo = new FileInfo; memset(fileinfo, 0, sizeof(FileInfo)); - strncpy(fileinfo->filename, getSavegameFile(i), 160); + Common::strlcpy(fileinfo->filename, getSavegameFile(i), 160); if (!getFileInfo(i, fileinfo)) { fileinfo->empty = true; diff --git a/engines/fullpipe/sound.cpp b/engines/fullpipe/sound.cpp index 53ed52a44b..8e49954bc6 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) { - strncpy(_sceneTracks[_numSceneTracks], sub->_varName, 260); + Common::strlcpy(_sceneTracks[_numSceneTracks], sub->_varName, 260); _numSceneTracks++; } @@ -432,7 +432,7 @@ void FullpipeEngine::playTrack(GameVar *sceneVar, const char *name, bool delayed while (sub) { if (_musicAllowed & sub->_value.intValue) { - strncpy(_sceneTracks[_numSceneTracks], sub->_varName, 260); + Common::strlcpy(_sceneTracks[_numSceneTracks], sub->_varName, 260); _numSceneTracks++; } |