diff options
author | doug <doug@openbsd.org> | 2015-10-14 08:12:12 +0000 |
---|---|---|
committer | doug <doug@openbsd.org> | 2015-10-14 08:12:12 +0000 |
commit | 673e924c3636ca89a9458797e02ad35e9e67754e (patch) | |
tree | 3bddb2155758f57164009467660361d57c660ca7 /games/bcd | |
parent | Two more char -> unsigned char in ctype functions. (diff) | |
download | wireguard-openbsd-673e924c3636ca89a9458797e02ad35e9e67754e.tar.xz wireguard-openbsd-673e924c3636ca89a9458797e02ad35e9e67754e.zip |
Pledge "stdio" for simple games.
ok semarie@
Diffstat (limited to 'games/bcd')
-rw-r--r-- | games/bcd/bcd.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/games/bcd/bcd.c b/games/bcd/bcd.c index 0cc64d2364b..a4ea91296a6 100644 --- a/games/bcd/bcd.c +++ b/games/bcd/bcd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bcd.c,v 1.20 2014/11/07 22:17:49 schwarze Exp $ */ +/* $OpenBSD: bcd.c,v 1.21 2015/10/14 08:12:12 doug Exp $ */ /* $NetBSD: bcd.c,v 1.6 1995/04/24 12:22:23 cgd Exp $ */ /* @@ -124,6 +124,9 @@ main(int argc, char *argv[]) int dflag = 0; int ch; + if (pledge("stdio", NULL) == -1) + err(1, "pledge"); + while ((ch = getopt(argc, argv, "dl")) != -1) { switch (ch) { case 'd': |