summaryrefslogtreecommitdiff
path: root/games/robots/score.c
diff options
context:
space:
mode:
Diffstat (limited to 'games/robots/score.c')
-rw-r--r--games/robots/score.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/games/robots/score.c b/games/robots/score.c
index 46b4d20c217..e03b4135ca8 100644
--- a/games/robots/score.c
+++ b/games/robots/score.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: score.c,v 1.4 1998/07/09 04:34:25 pjanzen Exp $ */
+/* $OpenBSD: score.c,v 1.5 1998/08/22 08:56:01 pjanzen Exp $ */
/* $NetBSD: score.c,v 1.3 1995/04/22 10:09:12 cgd Exp $ */
/*
@@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)score.c 8.1 (Berkeley) 5/31/93";
#else
-static char rcsid[] = "$OpenBSD: score.c,v 1.4 1998/07/09 04:34:25 pjanzen Exp $";
+static char rcsid[] = "$OpenBSD: score.c,v 1.5 1998/08/22 08:56:01 pjanzen Exp $";
#endif
#endif /* not lint */
@@ -71,6 +71,8 @@ score(score_wfd)
static int numscores, max_uid;
Newscore = FALSE;
+ if (inf < 0)
+ return;
if (read(inf, &max_uid, sizeof max_uid) == sizeof max_uid)
read(inf, Top, sizeof Top);