]> git.cameronkatri.com Git - bsdgames-darwin.git/commitdiff
don't segv if the terminal is too big.
authorchristos <christos@NetBSD.org>
Tue, 10 Nov 2020 22:52:45 +0000 (22:52 +0000)
committerchristos <christos@NetBSD.org>
Tue, 10 Nov 2020 22:52:45 +0000 (22:52 +0000)
warp/term.c

index 34851566919ad9f1869b968a17364a4e2ba4ef04..47a230edd0048c25600b990cbd496de5faf39a47 100644 (file)
@@ -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();