summaryrefslogtreecommitdiffstats
path: root/mille
diff options
context:
space:
mode:
authormycroft <mycroft@NetBSD.org>1994-01-13 01:19:58 +0000
committermycroft <mycroft@NetBSD.org>1994-01-13 01:19:58 +0000
commite926d53eabd7ef836ef12cdf1ee1437379a8f8d8 (patch)
tree8844133ac514ddee0b4d700cec2c414dbe1ff216 /mille
parent3fab2834b73bd8c948173b17e39a93bf1ad7ccf9 (diff)
downloadbsdgames-darwin-e926d53eabd7ef836ef12cdf1ee1437379a8f8d8.tar.gz
bsdgames-darwin-e926d53eabd7ef836ef12cdf1ee1437379a8f8d8.tar.zst
bsdgames-darwin-e926d53eabd7ef836ef12cdf1ee1437379a8f8d8.zip
Avoid infinite loop.
Diffstat (limited to 'mille')
-rw-r--r--mille/init.c6
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;