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/d17b0552968a
branches:  trunk
changeset: 942579:d17b0552968a
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 373333b85dda -r d17b0552968a 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