diff options
author | jsg <jsg@openbsd.org> | 2009-11-13 19:45:41 +0000 |
---|---|---|
committer | jsg <jsg@openbsd.org> | 2009-11-13 19:45:41 +0000 |
commit | 046f144b8cc1b6cd5a04f520e99c2281f48e28f7 (patch) | |
tree | 873e376df1a96470a58579bd904cbd562a2b5eb3 /games/snake | |
parent | Unreachable statement, found by lint. (diff) | |
download | wireguard-openbsd-046f144b8cc1b6cd5a04f520e99c2281f48e28f7.tar.xz wireguard-openbsd-046f144b8cc1b6cd5a04f520e99c2281f48e28f7.zip |
1.8 broke things, back it out, correct fix coming from pjanzen
Diffstat (limited to 'games/snake')
-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; |