summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortedu <tedu@openbsd.org>2017-05-31 19:51:27 +0000
committertedu <tedu@openbsd.org>2017-05-31 19:51:27 +0000
commitd73d827e1da55656d041a7500ed36b0f3581157d (patch)
tree54334f75fdcb703f8d491e0a7e33fc24423b4c5d
parentUse ferror() to check for getline() failure. From Scott Cheloha. (diff)
downloadwireguard-openbsd-d73d827e1da55656d041a7500ed36b0f3581157d.tar.xz
wireguard-openbsd-d73d827e1da55656d041a7500ed36b0f3581157d.zip
late game space battles require tty pledge to clear screen, etc.
from tomr
-rw-r--r--games/battlestar/battlestar.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/games/battlestar/battlestar.c b/games/battlestar/battlestar.c
index 56bccd1fe87..d1e9730ded4 100644
--- a/games/battlestar/battlestar.c
+++ b/games/battlestar/battlestar.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: battlestar.c,v 1.20 2016/01/01 15:56:04 tedu Exp $ */
+/* $OpenBSD: battlestar.c,v 1.21 2017/05/31 19:51:27 tedu Exp $ */
/* $NetBSD: battlestar.c,v 1.3 1995/03/21 15:06:47 cgd Exp $ */
/*
@@ -50,7 +50,7 @@ main(int argc, char *argv[])
char mainbuf[LINELENGTH];
char *next;
- if (pledge("stdio rpath wpath cpath", NULL) == -1)
+ if (pledge("stdio rpath wpath cpath tty", NULL) == -1)
err(1, "pledge");
open_score_file();