--- 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); }