AGI: Null terminate string. CID 1003889

This commit is contained in:
Eugene Sandulenko 2013-04-27 08:44:20 +03:00
parent b47c50a703
commit 4e7a117cd2

View file

@ -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];