aboutsummaryrefslogtreecommitdiff
path: root/engines/saga
diff options
context:
space:
mode:
authorEugene Sandulenko2013-04-28 23:22:09 +0300
committerEugene Sandulenko2013-04-28 23:59:20 +0300
commit0f9f2683142b0f6a371492e6cf6da8c6c3a51093 (patch)
treedff1c41803ee832929f20fd50b5e1085cad9ed72 /engines/saga
parent759dc8e978a8fd26a79f0c121b059d531f5b1988 (diff)
downloadscummvm-rg350-0f9f2683142b0f6a371492e6cf6da8c6c3a51093.tar.gz
scummvm-rg350-0f9f2683142b0f6a371492e6cf6da8c6c3a51093.tar.bz2
scummvm-rg350-0f9f2683142b0f6a371492e6cf6da8c6c3a51093.zip
SAGA: Null terminate string. CID 1003869
Diffstat (limited to 'engines/saga')
-rw-r--r--engines/saga/saveload.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/saga/saveload.cpp b/engines/saga/saveload.cpp
index 3cd44eba40..9784cf4e33 100644
--- a/engines/saga/saveload.cpp
+++ b/engines/saga/saveload.cpp
@@ -176,7 +176,7 @@ void SagaEngine::save(const char *fileName, const char *saveName) {
// Note that IHNM has a smaller save title size than ITE
// We allocate the ITE save title size here, to preserve
// savegame backwards compatibility
- strncpy(_saveHeader.name, saveName, SAVE_TITLE_SIZE);
+ Common::strlcpy(_saveHeader.name, saveName, SAVE_TITLE_SIZE);
out->writeUint32BE(_saveHeader.type);
out->writeUint32LE(_saveHeader.size);