diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2009-11-13 19:45:42 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2009-11-13 19:45:42 +0000 |
commit | 878aa8206770fdeeb3c49d9796de7bb6f8b839a5 (patch) | |
tree | e54133c5236b31f6577b5195d674ed1f9b97a977 /games/snake/snscore.c | |
parent | 2755099ce8bfc8e0dbbb86a34df37906dd36c33e (diff) |
1.8 broke things, back it out, correct fix coming from pjanzen
Diffstat (limited to 'games/snake/snscore.c')
-rw-r--r-- | games/snake/snscore.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/games/snake/snscore.c b/games/snake/snscore.c index 0e49bbd919f..409d25ba25c 100644 --- a/games/snake/snscore.c +++ b/games/snake/snscore.c @@ -1,4 +1,4 @@ -/* $OpenBSD: snscore.c,v 1.8 2009/11/12 23:53:24 jsg Exp $ */ +/* $OpenBSD: snscore.c,v 1.9 2009/11/13 19:45:41 jsg Exp $ */ /* $NetBSD: snscore.c,v 1.5 1995/04/24 12:25:43 cgd Exp $ */ /* @@ -105,7 +105,7 @@ snscore(int fd, int topn) if ((topn > 0) && (topn < noplayers)) noplayers = topn; j = 1; - for (i = 0; i < noplayers - 1; i++) { + for (i = 0; i < noplayers; i++) { printf("%d:\t$%d\t%s\n", j, players[i].scores, players[i].name); if (players[i].scores > players[i + 1].scores) j = i + 2; |