diff options
author | Eugene Sandulenko | 2013-04-27 08:44:20 +0300 |
---|---|---|
committer | Eugene Sandulenko | 2013-04-27 08:44:20 +0300 |
commit | 4e7a117cd28900bfdd5326115cd6e568394fb145 (patch) | |
tree | e548df2ea1450d8b6a36a3091102aa42abd2970c | |
parent | b47c50a703aabace27eb47317c5f3424e3b4c22d (diff) | |
download | scummvm-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.cpp | 2 |
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]; |