aboutsummaryrefslogtreecommitdiff
path: root/engines/saga
diff options
context:
space:
mode:
authorEugene Sandulenko2016-05-05 09:23:09 +0200
committerEugene Sandulenko2016-05-05 09:23:09 +0200
commit9acf733d81045a25f2710d63723ed7c351b21f7b (patch)
treeedaf125b5cf9c9516bec10dc425eff3b4c6d34ae /engines/saga
parent8a3b57803fe94f16bd3d89fae4d117555b87e21f (diff)
downloadscummvm-rg350-9acf733d81045a25f2710d63723ed7c351b21f7b.tar.gz
scummvm-rg350-9acf733d81045a25f2710d63723ed7c351b21f7b.tar.bz2
scummvm-rg350-9acf733d81045a25f2710d63723ed7c351b21f7b.zip
SAGA: Safer string copying
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 e659e09ce8..2d798bb0d6 100644
--- a/engines/saga/saveload.cpp
+++ b/engines/saga/saveload.cpp
@@ -56,7 +56,7 @@ SaveFileData *SagaEngine::getSaveFile(uint idx) {
return &_saveFiles[_saveFilesCount - idx - 1];
} else {
if (!emptySlot.name[0])
- strcpy(emptySlot.name, getTextString(kTextNewSave));
+ Common::strlcpy(emptySlot.name, getTextString(kTextNewSave), SAVE_TITLE_SIZE);
return (idx == 0) ? &emptySlot : &_saveFiles[_saveFilesCount - idx];
}