summaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authortb <tb@cvs.openbsd.org>2015-11-30 08:49:07 +0000
committertb <tb@cvs.openbsd.org>2015-11-30 08:49:07 +0000
commit9de2102a04e24bb27a8ebd5eaa59b0663901fe25 (patch)
treebbefba60dfe830ca0dabcdf5769d1eaf089a3c64 /games
parent274138b436de6084d096489dd5da29a0c4064255 (diff)
The usual deal for a curses game with the possibility of saving a game:
pledge "stdio rpath wpath cpath tty"
Diffstat (limited to 'games')
-rw-r--r--games/mille/mille.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/games/mille/mille.c b/games/mille/mille.c
index eaccaae217d..9d25d9e2f76 100644
--- a/games/mille/mille.c
+++ b/games/mille/mille.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mille.c,v 1.21 2015/11/04 21:22:10 tedu Exp $ */
+/* $OpenBSD: mille.c,v 1.22 2015/11/30 08:49:06 tb Exp $ */
/* $NetBSD: mille.c,v 1.4 1995/03/24 05:01:48 cgd Exp $ */
/*
@@ -45,6 +45,9 @@ main(ac, av)
bool restore;
extern char *__progname;
+ if (pledge("stdio rpath wpath cpath tty", NULL) == -1)
+ err(1, "pledge");
+
#ifdef DEBUG
if (strcmp(av[0], "a.out") == 0) {
outf = fopen("q", "w");