GNOME Bugzilla – Bug 344548
top 10 score claim incorrect
Last modified: 2006-06-12 03:50:46 UTC
Please describe the problem: After finishing the game, minesweeper claims i'm in the top 10 scorelist, while i'm actually not. The screenshot will show what i mean. Perhaps part of it has to do with the fact that during one of the times i scored, i changed my name from tino to 10o, but that's just a guess Steps to reproduce: 1. play the game 10 times 2. play it one more time but just aim just below number 10 score 3. watch the scorelist come up claiming you're in the top 10. Actual results: Expected results: Does this happen every time? Other information:
Created attachment 67116 [details] screenshot showing the incorrect top 10 claim the score time for player with name Tino Meinen is 4:18 while the number 10 score (for player with name 10o is: 4:02 )
I haven't been able to reproduce this yet, but I am seeing wierdness in the scores file... On the bottom line, usually about half my name by itself is just sitting there, "chard Hoelscher".
Yep, I'm seeing that as well. score file ending (line 11 and beyond) like: einen inen en
Created attachment 67145 [details] [review] Truncate the file after writing new content over old stuff. Because the file was open for reading and writing, anything we didn't overwrite when setting a new high score list was simply left in the file. It caused problems when the length of new content was shorter than the old content. Patch truncates the file to the length of the new content.
I've committed this to the HEAD and gnome-2-14 branches.
Speaking as the author of the buggy code: I'm embarrassed. Thanks for figuring it out Richard, I was looking at the symptoms and thinking "huh?".
Well, this is excellent, Richard! Thanks for following up on this one so fast. sincere gratitute. Tino Meinen