Package: tuxmath
Version: 2.0.3
This bug should be fixed, game hangs without patch.
I attach adapted patch for tuxmath-2.0.3
diff -ur tuxmath_w_fonts-2.0.3.orig/src/multiplayer.c tuxmath_w_fonts-2.0.3/src/multiplayer.c
--- tuxmath_w_fonts-2.0.3.orig/src/multiplayer.c 2011-05-04 04:15:13.000000000 +0400
+++ tuxmath_w_fonts-2.0.3/src/multiplayer.c 2015-07-18 21:14:33.000000000 +0300
@@ -295,15 +295,21 @@
//allocate and enter player names
for (i = 0; i < nplayers; ++i)
+ {
pnames[i] = malloc((1 + 3 * HIGH_SCORE_NAME_LENGTH) * sizeof(char) );
+ strcpy(pnames[i], "");
+ }
for (i = 0; i < nplayers; ++i)
{
if (pnames[i])
{
+ while(strcmp(pnames[i], "") == 0)
+ {
if (i == 0) //First player
NameEntry(pnames[i], N_("Who is playing first?"), N_("Enter your name:"), NULL);
else //subsequent players
NameEntry(pnames[i], N_("Who is playing next?"), N_("Enter your name:"), NULL);
+ }
}
else
{