diff options
author | sylvaintv | 2016-05-30 00:44:12 +0200 |
---|---|---|
committer | sylvaintv | 2016-05-30 00:44:12 +0200 |
commit | 879d8e6603b02451012dfc44939f6e9735221245 (patch) | |
tree | 30435c523f43ff087fdf43f24d04f1e71f7ea55c /engines | |
parent | 05ebbd88a6f7bf7f01f899d9f5aad2519ddfa154 (diff) | |
download | scummvm-rg350-879d8e6603b02451012dfc44939f6e9735221245.tar.gz scummvm-rg350-879d8e6603b02451012dfc44939f6e9735221245.tar.bz2 scummvm-rg350-879d8e6603b02451012dfc44939f6e9735221245.zip |
GNAP: Fix corrupted savegame title in GUI
Diffstat (limited to 'engines')
-rw-r--r-- | engines/gnap/detection.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/gnap/detection.cpp b/engines/gnap/detection.cpp index a7e9eece4a..25d1544b29 100644 --- a/engines/gnap/detection.cpp +++ b/engines/gnap/detection.cpp @@ -154,11 +154,11 @@ SaveStateDescriptor GnapMetaEngine::querySaveMetaInfos(const char *target, int s return SaveStateDescriptor(); } - char saveName[256]; + Common::String saveName; char ch; int i = 0; while ((ch = (char)file->readByte()) != '\0') - saveName[i++] = ch; + saveName += ch; SaveStateDescriptor desc(slot, saveName); |