diff options
author | mycroft <mycroft@NetBSD.org> | 1993-09-23 22:28:42 +0000 |
---|---|---|
committer | mycroft <mycroft@NetBSD.org> | 1993-09-23 22:28:42 +0000 |
commit | 028f8eac412e30600924633f62e0ded209deff6e (patch) | |
tree | 7d52a0c8d0dbffa05cb58c26392967ef4e247652 /rogue/score.c | |
parent | 418362a9df9e9fb7a2ef4617c88c9a285d3ab0ab (diff) | |
download | bsdgames-darwin-028f8eac412e30600924633f62e0ded209deff6e.tar.gz bsdgames-darwin-028f8eac412e30600924633f62e0ded209deff6e.tar.zst bsdgames-darwin-028f8eac412e30600924633f62e0ded209deff6e.zip |
Use `r+' rather than `a+' when opening score file.
Diffstat (limited to 'rogue/score.c')
-rw-r--r-- | rogue/score.c | 4 |
1 files changed, 2 insertions, 2 deletions
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(); } |