diff options
author | Tristan Heaven <nyhm@gentoo.org> | 2009-06-13 19:32:34 +0000 |
---|---|---|
committer | Tristan Heaven <nyhm@gentoo.org> | 2009-06-13 19:32:34 +0000 |
commit | bfb3e12df255f2ff7941f42c4ed0e24c351178b9 (patch) | |
tree | 2776438c0642e8e89755a153e452aed85f26c1dd /games-misc | |
parent | (Non-maintainer commit) Fix bug #273440, patch by Lars Wendler (Polynomial-C) (diff) | |
download | gentoo-2-bfb3e12df255f2ff7941f42c4ed0e24c351178b9.tar.gz gentoo-2-bfb3e12df255f2ff7941f42c4ed0e24c351178b9.tar.bz2 gentoo-2-bfb3e12df255f2ff7941f42c4ed0e24c351178b9.zip |
rm
(Portage version: 2.2_rc33/cvs/Linux i686)
Diffstat (limited to 'games-misc')
-rw-r--r-- | games-misc/bsd-games/files/bsd-games-2.17-tetris.patch | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/games-misc/bsd-games/files/bsd-games-2.17-tetris.patch b/games-misc/bsd-games/files/bsd-games-2.17-tetris.patch deleted file mode 100644 index 5a6fb1f22735..000000000000 --- a/games-misc/bsd-games/files/bsd-games-2.17-tetris.patch +++ /dev/null @@ -1,42 +0,0 @@ ---- bsd-games-2.13/tetris/scores.c.orig 2006-02-10 18:11:41.704770280 +0000 -+++ bsd-games-2.13/tetris/scores.c 2006-02-10 18:25:15.927989536 +0000 -@@ -339,7 +339,8 @@ - continue; - } - } -- levelfound[sp->hs_level] = 1; -+ if (sp->hs_level < NLEVELS && sp->hs_level >= 0) -+ levelfound[sp->hs_level] = 1; - i++, sp++; - } - return (num > MAXHISCORES ? MAXHISCORES : num); -@@ -378,12 +379,14 @@ - for (i = MINLEVEL; i < NLEVELS; i++) - levelfound[i] = 0; - for (i = 0, sp = scores; i < nscores; i++, sp++) { -- if (levelfound[sp->hs_level]) -- sp->hs_time = 0; -- else { -- sp->hs_time = 1; -- levelfound[sp->hs_level] = 1; -- } -+ if (sp->hs_level < NLEVELS && sp->hs_level >= 0) { -+ if (levelfound[sp->hs_level]) -+ sp->hs_time = 0; -+ else { -+ sp->hs_time = 1; -+ levelfound[sp->hs_level] = 1; -+ } -+ } - } - - /* -@@ -437,7 +440,7 @@ - continue; - } - sp = &hs[item]; -- (void)sprintf(buf, -+ (void)snprintf(buf, sizeof(buf), - "%3d%c %6d %-11s (%6d on %d)", - item + offset, sp->hs_time ? '*' : ' ', - sp->hs_score * sp->hs_level, |