From 028f8eac412e30600924633f62e0ded209deff6e Mon Sep 17 00:00:00 2001 From: mycroft Date: Thu, 23 Sep 1993 22:28:42 +0000 Subject: Use `r+' rather than `a+' when opening score file. --- rogue/score.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'rogue/score.c') diff --git a/rogue/score.c b/rogue/score.c index 28f40ad6..920a4dc4 100644 --- a/rogue/score.c +++ b/rogue/score.c @@ -36,7 +36,7 @@ #ifndef lint /*static char sccsid[] = "from: @(#)score.c 5.5 (Berkeley) 6/1/90";*/ -static char rcsid[] = "$Id: score.c,v 1.2 1993/08/01 18:52:13 mycroft Exp $"; +static char rcsid[] = "$Id: score.c,v 1.3 1993/09/23 22:28:42 mycroft Exp $"; #endif /* not lint */ /* @@ -207,7 +207,7 @@ short other; md_lock(1); - if ((fp = fopen(_PATH_SCOREFILE, "a+")) == NULL) { + if ((fp = fopen(_PATH_SCOREFILE, "r+")) == NULL) { message("cannot read/write/create score file", 0); sf_error(); } -- cgit v1.2.3-56-ge451