artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1b907d5
)
Drop "rpath" from pledge(2) after ncurses initialization.
author
mestre
<mestre@openbsd.org>
Mon, 6 Aug 2018 06:27:32 +0000
(06:27 +0000)
committer
mestre
<mestre@openbsd.org>
Mon, 6 Aug 2018 06:27:32 +0000
(06:27 +0000)
Discussed with and OK tb@
OK cheloha@ on previous version
games/worms/worms.c
patch
|
blob
|
history
diff --git
a/games/worms/worms.c
b/games/worms/worms.c
index
6d8c68e
..
869e931
100644
(file)
--- a/
games/worms/worms.c
+++ b/
games/worms/worms.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: worms.c,v 1.2
8 2016/03/05 07:47:15 tb Exp $
*/
+/* $OpenBSD: worms.c,v 1.2
9 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;