Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/games/warp don't segv if the terminal is too big.



details:   https://anonhg.NetBSD.org/src/rev/e104dc559e33
branches:  trunk
changeset: 945951:e104dc559e33
user:      christos <christos%NetBSD.org@localhost>
date:      Tue Nov 10 22:52:45 2020 +0000

description:
don't segv if the terminal is too big.

diffstat:

 games/warp/term.c |  2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diffs (12 lines):

diff -r 9ec364beee36 -r e104dc559e33 games/warp/term.c
--- a/games/warp/term.c Tue Nov 10 22:52:32 2020 +0000
+++ b/games/warp/term.c Tue Nov 10 22:52:45 2020 +0000
@@ -286,6 +286,8 @@
        no_can_do("dumb");
     if (!scorespec && (LINES < 24 || COLS < 80))
        no_can_do("puny");
+    if (LINES > 25)
+       no_can_do("humongus");
 
     crmode();
     raw();



Home | Main Index | Thread Index | Old Index