Upstream fix of terminal type length in option parsing

epel9
Josef Ridky 9 years ago
parent 708b58ac1f
commit ea1cf19cf9

@ -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':

@ -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 <jridky@redhat.com> - 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 <phracek@redhat.com> - 4.4.0-1
- New upstream release 4.4.0 (#1348015)

Loading…
Cancel
Save