diff options
author | Doug Hogan <doug@cvs.openbsd.org> | 2015-10-14 08:12:13 +0000 |
---|---|---|
committer | Doug Hogan <doug@cvs.openbsd.org> | 2015-10-14 08:12:13 +0000 |
commit | 724d760f63c5382d1d6f9b5f3cbaf200e625f288 (patch) | |
tree | abe8b7d72500d5384fe7f3a0a4b35eb420d30fe4 /games/morse | |
parent | 9697e0e3c9e7331691283fff518f3fdc00ae643a (diff) |
Pledge "stdio" for simple games.
ok semarie@
Diffstat (limited to 'games/morse')
-rw-r--r-- | games/morse/morse.c | 5 |
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': |