summaryrefslogtreecommitdiff
path: root/games/worms
diff options
context:
space:
mode:
authorRicardo Mestre <mestre@cvs.openbsd.org>2018-08-06 06:27:33 +0000
committerRicardo Mestre <mestre@cvs.openbsd.org>2018-08-06 06:27:33 +0000
commit5f268ea93b9558d757b5a75d94235bafaf393f9e (patch)
treee7314070169b40131553a5c0d410a2a33276a53a /games/worms
parenta51cf15d18019794949cb403a5ab27541e9d8185 (diff)
Drop "rpath" from pledge(2) after ncurses initialization.
Discussed with and OK tb@ OK cheloha@ on previous version
Diffstat (limited to 'games/worms')
-rw-r--r--games/worms/worms.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/games/worms/worms.c b/games/worms/worms.c
index 6d8c68ea102..869e9311a30 100644
--- a/games/worms/worms.c
+++ b/games/worms/worms.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: worms.c,v 1.28 2016/03/05 07:47:15 tb Exp $ */
+/* $OpenBSD: worms.c,v 1.29 2018/08/06 06:27:32 mestre Exp $ */
/*
* Copyright (c) 1980, 1993
@@ -233,6 +233,10 @@ main(int argc, char *argv[])
if (!(worm = calloc(number, sizeof(struct worm))))
nomem();
initscr();
+
+ if (pledge("stdio tty", NULL) == -1)
+ err(1, "pledge");
+
curs_set(0);
CO = COLS;
LI = LINES;