summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorchristos <christos@NetBSD.org>2020-11-10 22:52:45 +0000
committerchristos <christos@NetBSD.org>2020-11-10 22:52:45 +0000
commit2acc6cef51a7257648a80270cf2c631128bcffd1 (patch)
tree3b164938161bc24a68b4ba96be1d070e47b16972
parentbbc21d58a8095246dfc216156a3ed5c7241fc411 (diff)
downloadbsdgames-darwin-2acc6cef51a7257648a80270cf2c631128bcffd1.tar.gz
bsdgames-darwin-2acc6cef51a7257648a80270cf2c631128bcffd1.tar.zst
bsdgames-darwin-2acc6cef51a7257648a80270cf2c631128bcffd1.zip
don't segv if the terminal is too big.
-rw-r--r--warp/term.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/warp/term.c b/warp/term.c
index 34851566..47a230ed 100644
--- a/warp/term.c
+++ b/warp/term.c
@@ -286,6 +286,8 @@ term_set(char *tcbuf) /* temp area for "uncompiled" termcap entry */
no_can_do("dumb");
if (!scorespec && (LINES < 24 || COLS < 80))
no_can_do("puny");
+ if (LINES > 25)
+ no_can_do("humongus");
crmode();
raw();