Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37910946
en ru br
ALT Linux repositórios
5.0: 0.92-alt1
4.1: 0.91-alt1.qa1

Group :: Jogos/Arcade
RPM: tecnoballz

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

Patch: tecnoballz-0.91-configfile.patch
Download


--- tecnoballz-0.91.orig/src/configfile.cc	2005-03-01 15:15:08.000000000 +0100
+++ tecnoballz-0.91/src/configfile.cc	2006-12-23 17:18:35.000000000 +0100
@@ -167,12 +167,13 @@
 	if(nuOfPlayer < 1 || nuOfPlayer > 6) nuOfPlayer = 1;
 
 	//read players names
-	std::string sName;
-	char cName[7];
-	for(Uint32 i = 0; i < 6; i++) 
-	{	sprintf(cName, "%s%d", "player", i + 1);
+	std::string sName(6, ' ');
+	char cName[8] = {"......."};
+	for(Uint32 i = 0; i < 6; i++)
+        {       //sprintf(cName, "%s%01d", "player", i + 1);
+                sprintf(cName, "player%01d", i + 1);
 		if(reader.read_string (cName, &sName))
-		{	//printf("LOAD : %s %s\n", cName, sName.c_str());
+		{	//printf("LOAD : <%s> => <%s> \n", cName, sName.c_str());
 			strncpy(thePlayers[i], sName.c_str(), 6);
 		}
 		
 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009