summaryrefslogtreecommitdiff
path: root/games/morse
diff options
context:
space:
mode:
authorDoug Hogan <doug@cvs.openbsd.org>2015-10-14 08:12:13 +0000
committerDoug Hogan <doug@cvs.openbsd.org>2015-10-14 08:12:13 +0000
commit724d760f63c5382d1d6f9b5f3cbaf200e625f288 (patch)
treeabe8b7d72500d5384fe7f3a0a4b35eb420d30fe4 /games/morse
parent9697e0e3c9e7331691283fff518f3fdc00ae643a (diff)
Pledge "stdio" for simple games.
ok semarie@
Diffstat (limited to 'games/morse')
-rw-r--r--games/morse/morse.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/games/morse/morse.c b/games/morse/morse.c
index ad5792e95d4..b99412cb40c 100644
--- a/games/morse/morse.c
+++ b/games/morse/morse.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: morse.c,v 1.15 2013/11/27 13:32:02 okan Exp $ */
+/* $OpenBSD: morse.c,v 1.16 2015/10/14 08:12:12 doug Exp $ */
/*
* Copyright (c) 1988, 1993
@@ -112,6 +112,9 @@ main(int argc, char *argv[])
int ch;
char *p;
+ if (pledge("stdio", NULL) == -1)
+ err(1, "pledge");
+
while ((ch = getopt(argc, argv, "dsh")) != -1)
switch(ch) {
case 'd':