From 046f144b8cc1b6cd5a04f520e99c2281f48e28f7 Mon Sep 17 00:00:00 2001 From: jsg Date: Fri, 13 Nov 2009 19:45:41 +0000 Subject: 1.8 broke things, back it out, correct fix coming from pjanzen --- games/snake/snscore.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'games/snake') 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; -- cgit v1.2.3-59-g8ed1b