diff options
author | Gregory Montoir | 2008-12-07 19:15:19 +0000 |
---|---|---|
committer | Gregory Montoir | 2008-12-07 19:15:19 +0000 |
commit | f8c12238324325419ed2087cd91a29b101e8fb11 (patch) | |
tree | daf5e5155dddee6fe6fa56d1d88f2cb471514e90 | |
parent | 78fd335a4260a16664083fbf3333b8fba52e75ea (diff) | |
download | scummvm-rg350-f8c12238324325419ed2087cd91a29b101e8fb11.tar.gz scummvm-rg350-f8c12238324325419ed2087cd91a29b101e8fb11.tar.bz2 scummvm-rg350-f8c12238324325419ed2087cd91a29b101e8fb11.zip |
fixed readGameStateDescription() len parameter
svn-id: r35282
-rw-r--r-- | engines/touche/detection.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/touche/detection.cpp b/engines/touche/detection.cpp index 039df82515..2b9222ebe5 100644 --- a/engines/touche/detection.cpp +++ b/engines/touche/detection.cpp @@ -182,8 +182,8 @@ SaveStateList ToucheMetaEngine::listSaves(const char *target) const { Common::String file = Touche::generateGameStateFileName(target, slot); Common::InSaveFile *in = g_system->getSavefileManager()->openForLoading(file.c_str()); if (in) { - char description[64] = { 0 }; - Touche::readGameStateDescription(in, description, sizeof(description)); + char description[64]; + Touche::readGameStateDescription(in, description, sizeof(description) - 1); if (description[0]) { saveList.push_back(SaveStateDescriptor(slot, description)); } |