update-game-score: fix bug with -r
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 21 Mar 2011 07:46:53 +0000 (00:46 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 21 Mar 2011 07:46:53 +0000 (00:46 -0700)
commitf0d80d43baa89029ea030a98350a74793ee5dc89
tree392ccea9f3a58959e20817b046ecc25dceb3a878
parent37dd57d1e53ffb2d9dee6cc66d807e6d2575ef57
update-game-score: fix bug with -r

* update-game-score.c (main): Don't set 'scores' to garbage when
-r is specified and scorecount != MAX_SCORES.  This bug was
introduced in the 2002-04-10 change, and was found with gcc
-Wstrict-overflow (GCC 4.5.2, x86-64).
lib-src/ChangeLog
lib-src/update-game-score.c