Allow $TERM to be longer than 20 bytes, allow for 63 bytes.
PR: 162339
This commit is contained in:
parent
67529a989c
commit
bee68770e8
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=285273
@ -7,7 +7,7 @@
|
||||
|
||||
PORTNAME= screen
|
||||
PORTVERSION= 4.0.3
|
||||
PORTREVISION= 12
|
||||
PORTREVISION= 13
|
||||
CATEGORIES= sysutils
|
||||
MASTER_SITES= ftp://ftp.uni-erlangen.de/pub/utilities/screen/ \
|
||||
http://komquats.com/distfiles/ \
|
||||
|
11
sysutils/screen/files/patch-display.h
Normal file
11
sysutils/screen/files/patch-display.h
Normal file
@ -0,0 +1,11 @@
|
||||
--- display.h.orig 2003-07-01 07:01:42.000000000 -0700
|
||||
+++ display.h 2011-11-07 11:54:32.842183150 -0800
|
||||
@@ -85,7 +85,7 @@
|
||||
struct win *d_other; /* pointer to other window */
|
||||
int d_nonblock; /* -1 don't block if obufmax reached */
|
||||
/* >0: block after nonblock secs */
|
||||
- char d_termname[20 + 1]; /* $TERM */
|
||||
+ char d_termname[63 + 1]; /* $TERM */
|
||||
char *d_tentry; /* buffer for tgetstr */
|
||||
char d_tcinited; /* termcap inited flag */
|
||||
int d_width, d_height; /* width/height of the screen */
|
@ -1,5 +1,5 @@
|
||||
--- screen.h.orig 2003-08-22 14:28:43.000000000 +0200
|
||||
+++ screen.h 2007-07-30 10:25:45.000000000 +0200
|
||||
--- screen.h.orig 2003-08-22 05:28:43.000000000 -0700
|
||||
+++ screen.h 2011-11-07 11:53:41.739890820 -0800
|
||||
@@ -22,6 +22,8 @@
|
||||
* $Id: screen.h,v 1.12 1994/05/31 12:32:54 mlschroe Exp $ FAU
|
||||
*/
|
||||
@ -9,3 +9,12 @@
|
||||
#include "os.h"
|
||||
|
||||
#if defined(__STDC__)
|
||||
@@ -202,7 +204,7 @@
|
||||
char preselect[20];
|
||||
int esc; /* his new escape character unless -1 */
|
||||
int meta_esc; /* his new meta esc character unless -1 */
|
||||
- char envterm[20 + 1]; /* terminal type */
|
||||
+ char envterm[63 + 1]; /* terminal type */
|
||||
int encoding; /* encoding of display */
|
||||
}
|
||||
attach;
|
||||
|
Loading…
Reference in New Issue
Block a user