From bee68770e85bbd011b2f5dd459aeb20676810d8b Mon Sep 17 00:00:00 2001 From: Cy Schubert Date: Tue, 8 Nov 2011 05:15:49 +0000 Subject: [PATCH] Allow $TERM to be longer than 20 bytes, allow for 63 bytes. PR: 162339 --- sysutils/screen/Makefile | 2 +- sysutils/screen/files/patch-display.h | 11 +++++++++++ sysutils/screen/files/patch-screen.h | 13 +++++++++++-- 3 files changed, 23 insertions(+), 3 deletions(-) create mode 100644 sysutils/screen/files/patch-display.h diff --git a/sysutils/screen/Makefile b/sysutils/screen/Makefile index cdc0f92fe348..00cc09c58595 100644 --- a/sysutils/screen/Makefile +++ b/sysutils/screen/Makefile @@ -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/ \ diff --git a/sysutils/screen/files/patch-display.h b/sysutils/screen/files/patch-display.h new file mode 100644 index 000000000000..cb3610bdfbd0 --- /dev/null +++ b/sysutils/screen/files/patch-display.h @@ -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 */ diff --git a/sysutils/screen/files/patch-screen.h b/sysutils/screen/files/patch-screen.h index a5a370f62ef2..d8fa112b5769 100644 --- a/sysutils/screen/files/patch-screen.h +++ b/sysutils/screen/files/patch-screen.h @@ -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;