diff options
Diffstat (limited to 'rogue/score.c')
| -rw-r--r-- | rogue/score.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/rogue/score.c b/rogue/score.c index 920a4dc4..4b4f0691 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.3 1993/09/23 22:28:42 mycroft Exp $"; +static char rcsid[] = "$Id: score.c,v 1.4 1993/11/10 10:02:20 cgd Exp $"; #endif /* not lint */ /* @@ -207,7 +207,8 @@ short other; md_lock(1); - if ((fp = fopen(_PATH_SCOREFILE, "r+")) == NULL) { + if ((fp = fopen(_PATH_SCOREFILE, "r+")) == NULL && + (fp = fopen(_PATH_SCOREFILE, "w+")) == NULL) { message("cannot read/write/create score file", 0); sf_error(); } |
