diff options
| author | cgd <cgd@NetBSD.org> | 1993-11-10 10:02:16 +0000 |
|---|---|---|
| committer | cgd <cgd@NetBSD.org> | 1993-11-10 10:02:16 +0000 |
| commit | 629fa8000f93ef02e38680e026feec5a0fd0b6bb (patch) | |
| tree | 37a1ce34862246be2f78063544cee5bb52145016 /rogue/score.c | |
| parent | 2ba90e9d2c3a88e22c0593e8a7c0f1cd6318ba11 (diff) | |
| download | bsdgames-darwin-629fa8000f93ef02e38680e026feec5a0fd0b6bb.tar.gz bsdgames-darwin-629fa8000f93ef02e38680e026feec5a0fd0b6bb.zip | |
new curses update
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(); } |
