summaryrefslogtreecommitdiff
path: root/games/trek
diff options
context:
space:
mode:
authorSteve Price <steve@FreeBSD.org>1999-04-19 03:59:02 +0000
committerSteve Price <steve@FreeBSD.org>1999-04-19 03:59:02 +0000
commitaf71cfbb87e566f2b9f599f5c40481194f449a69 (patch)
tree579f8949d23c1c30971542889c96433deb74f034 /games/trek
parentf1cb6ca39242b433b30c59db2895c3ac48406ab5 (diff)
Notes
Diffstat (limited to 'games/trek')
-rw-r--r--games/trek/dumpgame.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/games/trek/dumpgame.c b/games/trek/dumpgame.c
index d386a9fc3a6c..cdcee6ad65b7 100644
--- a/games/trek/dumpgame.c
+++ b/games/trek/dumpgame.c
@@ -35,6 +35,8 @@
static char sccsid[] = "@(#)dumpgame.c 8.1 (Berkeley) 5/31/93";
#endif /* not lint */
+#include <fcntl.h>
+
# include "trek.h"
/*** THIS CONSTANT MUST CHANGE AS THE DATA SPACES CHANGE ***/
@@ -111,7 +113,7 @@ restartgame()
register int fd;
int version;
- if ((fd = open("trek.dump", 0)) < 0 ||
+ if ((fd = open("trek.dump", O_RDONLY)) < 0 ||
read(fd, &version, sizeof version) != sizeof version ||
version != VERSION ||
readdump(fd))