aboutsummaryrefslogtreecommitdiff
path: root/engines/kyra
diff options
context:
space:
mode:
authorathrxx2019-02-06 20:10:04 +0100
committerathrxx2019-03-06 20:48:19 +0100
commit4d934ec30e4199e7cf91885e01f51963032a4637 (patch)
tree92505fac3558b3a978e8e5af8bf141183c9f6247 /engines/kyra
parentbc66a1ee82b2aa1466fcfef78416983282a9efd8 (diff)
downloadscummvm-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)
Diffstat (limited to 'engines/kyra')
-rw-r--r--engines/kyra/gui/saveload_eob.cpp2
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);
}