From e926d53eabd7ef836ef12cdf1ee1437379a8f8d8 Mon Sep 17 00:00:00 2001 From: mycroft Date: Thu, 13 Jan 1994 01:19:58 +0000 Subject: Avoid infinite loop. --- mille/init.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'mille') diff --git a/mille/init.c b/mille/init.c index 92b7e5c7..0dc7194d 100644 --- a/mille/init.c +++ b/mille/init.c @@ -33,7 +33,7 @@ #ifndef lint /*static char sccsid[] = "from: @(#)init.c 5.4 (Berkeley) 6/1/90";*/ -static char rcsid[] = "$Id: init.c,v 1.2 1993/08/01 18:54:02 mycroft Exp $"; +static char rcsid[] = "$Id: init.c,v 1.3 1994/01/13 01:19:58 mycroft Exp $"; #endif /* not lint */ # include "mille.h" @@ -197,8 +197,8 @@ newscore() { for (i = 0; i < SCORE_Y; i++) mvaddch(i, 0, '|'); move(SCORE_Y - 1, 1); - while (addch('_') != ERR) - continue; + for (i = 0; i < SCORE_X - 1; i++) + addch('_'); for (pp = Player; pp <= &Player[COMP]; pp++) { pp->sh_hand_tot = -1; pp->sh_total = -1; -- cgit v1.2.3-56-ge451