--- screen-4.3.1/termcap.c.orig 2015-06-29 00:22:56.000000000 +0300 +++ screen-4.3.1/termcap.c 2016-06-12 16:31:50.790135158 +0300 @@ -72,7 +72,7 @@ static int Termcaplen; static int tcLineLen; char Term[MAXSTR+5]; /* +5: "TERM=" */ -char screenterm[20]; /* new $TERM, usually "screen" */ +char screenterm[MAXSTR]; /* new $TERM, usually "screen" */ char *extra_incap, *extra_outcap;