1--- lib-src/update-game-score.c 2007-01-20 20:49:26.000000000 -0800 2+++ lib-src/update-game-score.c 2011-10-25 18:16:45.000000000 -0700 3@@ -368,7 +368,7 @@ read_scores (filename, scores, count) 4 return -1; 5 scorecount = 0; 6 cursize = 16; 7- ret = (struct score_entry *) malloc (sizeof (struct score_entry) * cursize); 8+ ret = (struct score_entry *) calloc (sizeof (struct score_entry), cursize); 9 if (!ret) 10 return -1; 11 while ((readval = read_score (f, &ret[scorecount])) == 0) 12@@ -384,6 +384,7 @@ read_scores (filename, scores, count) 13 realloc (ret, (sizeof (struct score_entry) * cursize)); 14 if (!ret) 15 return -1; 16+ memset(&ret[scorecount], 0, sizeof(struct score_entry)*(cursize-scorecount)); 17 } 18 } 19 *count = scorecount; 20