[Scummvm-cvs-logs] scummvm master -> 879d8e6603b02451012dfc44939f6e9735221245

sylvaintv sylvaintv at gmail.com
Mon May 30 00:45:21 CEST 2016


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
879d8e6603 GNAP: Fix corrupted savegame title in GUI


Commit: 879d8e6603b02451012dfc44939f6e9735221245
    https://github.com/scummvm/scummvm/commit/879d8e6603b02451012dfc44939f6e9735221245
Author: sylvaintv (sylvaintv at gmail.com)
Date: 2016-05-30T00:44:12+02:00

Commit Message:
GNAP: Fix corrupted savegame title in GUI

Changed paths:
    engines/gnap/detection.cpp



diff --git a/engines/gnap/detection.cpp b/engines/gnap/detection.cpp
index a7e9eec..25d1544 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);
 






More information about the Scummvm-git-logs mailing list