On Tue, Aug 6, 2013 at 7:32 PM, Axel Beckert <[email protected]> wrote: > On Tue, Aug 06, 2013 at 07:05:30PM +0200, Carsten Mattner wrote: >> Minimally off-topic but I'm sure everyone will agree that d_termname's >> size should be increased to prevent problems with things like >> TERM=rxvt-unicode-256color. Maybe like this? >> --- a/src/display.h >> +++ b/src/display.h >> @@ -73,7 +73,7 @@ struct display >> 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[24 + 1]; /* $TERM */ >> char *d_tentry; /* buffer for tgetstr */ >> char d_tcinited; /* termcap inited flag */ >> int d_width, d_height; /* width/height of the screen */ > > That definitely doesn't suffice. There are several places where this > needs to be changed. > > Also I think if we change that value, it should be changed with more > farsight and not only extended by 4 bytes. The Debian packagedoubled > the size and uses 40 bytes for that. > > Full patch at > http://patch-tracker.debian.org/patch/series/view/screen/4.1.0~20120320gitdb59704-9/50increase-max-TERM-length.patch
Oh I see and do you agree that a final patch to be included should define the constant once and reuse that? _______________________________________________ screen-users mailing list [email protected] https://lists.gnu.org/mailman/listinfo/screen-users
