[Scummvm-cvs-logs] SF.net SVN: scummvm: [30571] scummvm/trunk/engines

aquadran at users.sourceforge.net aquadran at users.sourceforge.net
Sat Jan 19 21:00:36 CET 2008


Revision: 30571
          http://scummvm.svn.sourceforge.net/scummvm/?rev=30571&view=rev
Author:   aquadran
Date:     2008-01-19 12:00:36 -0800 (Sat, 19 Jan 2008)

Log Message:
-----------
fixed potential unitialized variables, one array overflow

Modified Paths:
--------------
    scummvm/trunk/engines/agi/predictive.cpp
    scummvm/trunk/engines/drascula/drascula.cpp

Modified: scummvm/trunk/engines/agi/predictive.cpp
===================================================================
--- scummvm/trunk/engines/agi/predictive.cpp	2008-01-19 19:32:40 UTC (rev 30570)
+++ scummvm/trunk/engines/agi/predictive.cpp	2008-01-19 20:00:36 UTC (rev 30571)
@@ -552,7 +552,7 @@
 		return false;
 	}
 	// Lookup word in the dictionary
-	int line, span, cmpRes, len;
+	int line = 0, span, cmpRes, len;
 	char target[MAXWORDLEN];
 
 	strncpy(target, _currentCode.c_str(), MAXWORDLEN);

Modified: scummvm/trunk/engines/drascula/drascula.cpp
===================================================================
--- scummvm/trunk/engines/drascula/drascula.cpp	2008-01-19 19:32:40 UTC (rev 30570)
+++ scummvm/trunk/engines/drascula/drascula.cpp	2008-01-19 20:00:36 UTC (rev 30571)
@@ -1435,8 +1435,8 @@
 }
 
 void DrasculaEngine::carga_escoba(const char *nom_fich) {
-	int soc, l, martin, obj_salir;
-	float chiquez, pequegnez = 0;
+	int soc, l, martin = 0, obj_salir;
+	float chiquez = 0, pequegnez = 0;
 	char pant1[20], pant2[20], pant3[20], pant4[20];
 	char para_codificar[20];
 	char buffer[256];
@@ -5523,7 +5523,7 @@
 	int juego1 = 1, juego2 = 1, juego3 = 1, juego4 = 1;
 	char frase1[78];
 	char frase2[78];
-	char frase3[78];
+	char frase3[79];
 	char frase4[78];
 	char para_codificar[13];
 	char suena1[13];


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list