diff options
Diffstat (limited to 'games/worm')
-rw-r--r-- | games/worm/worm.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/games/worm/worm.c b/games/worm/worm.c index b059245ab71..c3f3eeca046 100644 --- a/games/worm/worm.c +++ b/games/worm/worm.c @@ -1,4 +1,4 @@ -/* $OpenBSD: worm.c,v 1.33 2015/11/04 21:22:10 tedu Exp $ */ +/* $OpenBSD: worm.c,v 1.34 2015/11/21 05:29:42 deraadt Exp $ */ /* * Copyright (c) 1980, 1993 @@ -92,6 +92,9 @@ main(int argc, char **argv) const char *errstr; struct timespec t, tn, tdiff; + if (pledge("stdio rpath tty", NULL) == -1) + err(1, "pledge"); + timespecclear(&t); setvbuf(stdout, outbuf, _IOFBF, sizeof outbuf); |