From ea1cf19cf9b39695b84c65fca33e6e7251c0afdb Mon Sep 17 00:00:00 2001 From: Josef Ridky Date: Wed, 14 Sep 2016 10:26:11 +0200 Subject: [PATCH] Upstream fix of terminal type length in option parsing --- screen-4.4.0-terminal-length.patch | 13 +++++++++++++ screen.spec | 4 +++- 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 screen-4.4.0-terminal-length.patch diff --git a/screen-4.4.0-terminal-length.patch b/screen-4.4.0-terminal-length.patch new file mode 100644 index 0000000..271260d --- /dev/null +++ b/screen-4.4.0-terminal-length.patch @@ -0,0 +1,13 @@ +diff -ruNp orig/screen.c new/screen.c +--- orig/screen.c 2016-09-14 10:14:48.300290829 +0200 ++++ new/screen.c 2016-09-14 10:16:19.119329639 +0200 +@@ -694,7 +694,7 @@ char **av; + strncpy(screenterm, *av, MAXTERMLEN); + screenterm[MAXTERMLEN] = '\0'; + } else +- Panic(0, "-T: terminal name too long. (max. 20 char)"); ++ Panic(0, "-T: terminal name too long. (max. %d char)", MAXTERMLEN); + nwin_options.term = screenterm; + break; + case 'q': + diff --git a/screen.spec b/screen.spec index d9ed716..eb51559 100644 --- a/screen.spec +++ b/screen.spec @@ -26,6 +26,7 @@ Patch3: screen-E3.patch Patch4: screen-4.3.1-suppress_remap.patch Patch5: screen-4.3.1-crypt.patch Patch6: screen-4.4.0-terminal-segfault.patch +Patch7: screen-4.4.0-terminal-length.patch %description The screen utility allows you to have multiple logins on just one @@ -45,7 +46,7 @@ support multiple logins on one terminal. %patch4 -p1 -b .suppress_remap %patch5 -p1 -b .crypto %patch6 -p1 -b .terminal-segfault - +%patch7 -p1 -b .terminal-length %build ./autogen.sh @@ -144,6 +145,7 @@ fi %changelog * Wed Sep 14 2016 Josef Ridky - 4.4.0-2 - fix problem with crash on new window when the terminal type is very long (#1350549) +- upstream fix terminal type length in option parsing * Wed Jun 22 2016 Petr Hracek - 4.4.0-1 - New upstream release 4.4.0 (#1348015)