diff options
author | athrxx | 2019-02-06 20:10:04 +0100 |
---|---|---|
committer | athrxx | 2019-03-06 20:48:19 +0100 |
commit | 4d934ec30e4199e7cf91885e01f51963032a4637 (patch) | |
tree | 92505fac3558b3a978e8e5af8bf141183c9f6247 | |
parent | bc66a1ee82b2aa1466fcfef78416983282a9efd8 (diff) | |
download | scummvm-rg350-4d934ec30e4199e7cf91885e01f51963032a4637.tar.gz scummvm-rg350-4d934ec30e4199e7cf91885e01f51963032a4637.tar.bz2 scummvm-rg350-4d934ec30e4199e7cf91885e01f51963032a4637.zip |
KYRA: (EOB) - minor save file export fix
(avoid out of bounds strings when importing FM-TOWNS save files)
-rw-r--r-- | engines/kyra/gui/saveload_eob.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/kyra/gui/saveload_eob.cpp b/engines/kyra/gui/saveload_eob.cpp index 8f2c6e1838..c73831e9f5 100644 --- a/engines/kyra/gui/saveload_eob.cpp +++ b/engines/kyra/gui/saveload_eob.cpp @@ -1031,7 +1031,7 @@ bool EoBCoreEngine::saveAsOriginalSaveFile(int slot) { Common::OutSaveFile *out = new Common::OutSaveFile(nf.createWriteStream()); if (_flags.gameID == GI_EOB2) { - static const char tempStr[31] = "SCUMMVM EXPORT "; + static const char tempStr[31] = "SCUMMVM EXPORT\0"; out->write(tempStr, (_flags.platform == Common::kPlatformFMTowns) ? 30 : 20); } |