aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Sandulenko2013-04-27 08:44:20 +0300
committerEugene Sandulenko2013-04-27 08:44:20 +0300
commit4e7a117cd28900bfdd5326115cd6e568394fb145 (patch)
treee548df2ea1450d8b6a36a3091102aa42abd2970c
parentb47c50a703aabace27eb47317c5f3424e3b4c22d (diff)
downloadscummvm-rg350-4e7a117cd28900bfdd5326115cd6e568394fb145.tar.gz
scummvm-rg350-4e7a117cd28900bfdd5326115cd6e568394fb145.tar.bz2
scummvm-rg350-4e7a117cd28900bfdd5326115cd6e568394fb145.zip
AGI: Null terminate string. CID 1003889
-rw-r--r--engines/agi/saveload.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/agi/saveload.cpp b/engines/agi/saveload.cpp
index d451a799a0..ea102bf0d4 100644
--- a/engines/agi/saveload.cpp
+++ b/engines/agi/saveload.cpp
@@ -316,7 +316,7 @@ int AgiEngine::loadGame(const Common::String &fileName, bool checkId) {
return errBadFileOpen;
}
- strncpy(_game.id, loadId, 8);
+ Common::strlcpy(_game.id, loadId, 8);
if (saveVersion >= 5) {
char md5[32 + 1];