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/f20478bcdfd4
branches:  trunk
changeset: 956936:f20478bcdfd4
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 4346c6d9cce6 -r f20478bcdfd4 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