[Scummvm-cvs-logs] scummvm master -> 3a506073c33db6743c63023424d0638088a9fab5

clone2727 clone2727 at gmail.com
Thu Jun 2 21:47:15 CEST 2011


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:
3a506073c3 GROOVIE: Ensure the final character of the resource name is a null


Commit: 3a506073c33db6743c63023424d0638088a9fab5
    https://github.com/scummvm/scummvm/commit/3a506073c33db6743c63023424d0638088a9fab5
Author: Matthew Hoops (clone2727 at gmail.com)
Date: 2011-06-02T12:42:17-07:00

Commit Message:
GROOVIE: Ensure the final character of the resource name is a null

Some filenames are exactly 12 bytes long ie. keyboard.vdx

Changed paths:
    engines/groovie/resource.cpp



diff --git a/engines/groovie/resource.cpp b/engines/groovie/resource.cpp
index 10cf24a..05b43b7 100644
--- a/engines/groovie/resource.cpp
+++ b/engines/groovie/resource.cpp
@@ -170,8 +170,9 @@ bool ResMan_t7g::getResInfo(uint32 fileRef, ResInfo &resInfo) {
 	}
 
 	// Read the resource name (just for debugging purposes)
-	char resname[12];
+	char resname[13];
 	rlFile->read(resname, 12);
+	resname[12] = 0;
 	debugC(2, kGroovieDebugResource | kGroovieDebugAll, "Groovie::Resource: Resource name: %12s", resname);
 	resInfo.filename = resname;
 






More information about the Scummvm-git-logs mailing list