diff options
author | mycroft <mycroft@NetBSD.org> | 1994-01-13 01:19:58 +0000 |
---|---|---|
committer | mycroft <mycroft@NetBSD.org> | 1994-01-13 01:19:58 +0000 |
commit | e926d53eabd7ef836ef12cdf1ee1437379a8f8d8 (patch) | |
tree | 8844133ac514ddee0b4d700cec2c414dbe1ff216 /mille/init.c | |
parent | 3fab2834b73bd8c948173b17e39a93bf1ad7ccf9 (diff) | |
download | bsdgames-darwin-e926d53eabd7ef836ef12cdf1ee1437379a8f8d8.tar.gz bsdgames-darwin-e926d53eabd7ef836ef12cdf1ee1437379a8f8d8.tar.zst bsdgames-darwin-e926d53eabd7ef836ef12cdf1ee1437379a8f8d8.zip |
Avoid infinite loop.
Diffstat (limited to 'mille/init.c')
-rw-r--r-- | mille/init.c | 6 |
1 files changed, 3 insertions, 3 deletions
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; |