[Scummvm-cvs-logs] CVS: scummvm/simon simon.cpp,1.408,1.409

Travis Howell kirben at users.sourceforge.net
Thu Jan 1 01:01:03 CET 2004


Update of /cvsroot/scummvm/scummvm/simon
In directory sc8-pr-cvs1:/tmp/cvs-serv29251/simon

Modified Files:
	simon.cpp 
Log Message:

Reduce some buffers to more reasonable sizes.


Index: simon.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/simon/simon.cpp,v
retrieving revision 1.408
retrieving revision 1.409
diff -u -d -r1.408 -r1.409
--- simon.cpp	1 Jan 2004 08:42:49 -0000	1.408
+++ simon.cpp	1 Jan 2004 09:00:40 -0000	1.409
@@ -4473,7 +4473,7 @@
 void SimonEngine::read_vga_from_datfile_1(uint vga_id) {
 	if (_game & GF_OLD_BUNDLE) {
 		File in;
-		char buf[50];
+		char buf[15];
 		uint32 size;
 		if (vga_id == 23) 
 			vga_id = 112;
@@ -4515,7 +4515,7 @@
 byte *SimonEngine::read_vga_from_datfile_2(uint id) {
 	if (_game & GF_OLD_BUNDLE) {
 		File in;
-		char buf[50];
+		char buf[15];
 		uint32 size;
 		byte *dst;
 
@@ -4852,7 +4852,7 @@
 		return;
 
 	bool success;
-	char buf[256];
+	char buf[50];
 
 	char *filename = gen_savename(_saveLoadSlot);
 	if (_saveLoadFlag == 2) {
@@ -5086,7 +5086,7 @@
 }
 
 char *SimonEngine::gen_savename(int slot) {
-	static char buf[256];
+	static char buf[15];
 
 	if (_game & GF_SIMON2) {
 	sprintf(buf, "simon2.%.3d", slot);
@@ -5253,7 +5253,7 @@
 				_game_file->seek(_game_offsets_ptr[MUSIC_INDEX_BASE + music], SEEK_SET);
 				midi.loadSMF (_game_file, music);
 			} else {
-				char buf[50];
+				char buf[15];
 				File f;
 				sprintf(buf, "MOD%d.MUS", music);
 				f.open(buf, _gameDataPath);





More information about the Scummvm-git-logs mailing list