diff options
author | 2015-11-30 08:53:53 +0000 | |
---|---|---|
committer | 2015-11-30 08:53:53 +0000 | |
commit | 0a5000655cd347ebda6682b04cd401690ab8cb1a (patch) | |
tree | d8897a6199afbdfc9bad381b87a11d9607aa3930 | |
parent | The usual deal for a curses game with the possibility of saving a game: (diff) | |
download | wireguard-openbsd-0a5000655cd347ebda6682b04cd401690ab8cb1a.tar.xz wireguard-openbsd-0a5000655cd347ebda6682b04cd401690ab8cb1a.zip |
primes only needs pledge "stdio".
-rw-r--r-- | games/primes/primes.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/games/primes/primes.c b/games/primes/primes.c index 860d9a23049..b8baf1b2fe0 100644 --- a/games/primes/primes.c +++ b/games/primes/primes.c @@ -1,4 +1,4 @@ -/* $OpenBSD: primes.c,v 1.17 2015/10/24 17:34:16 mmcc Exp $ */ +/* $OpenBSD: primes.c,v 1.18 2015/11/30 08:53:53 tb Exp $ */ /* $NetBSD: primes.c,v 1.5 1995/04/24 12:24:47 cgd Exp $ */ /* @@ -103,6 +103,9 @@ main(int argc, char *argv[]) int ch; char *p; + if (pledge("stdio", NULL) == -1) + err(1, "pledge"); + while ((ch = getopt(argc, argv, "")) != -1) { switch (ch) { case '?': |