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/2a54bf29d5a0
branches:  trunk
changeset: 1016195:2a54bf29d5a0
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 297e90251d64 -r 2a54bf29d5a0 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