ports/sysutils/screen49/files/patch-termcap.c
Cy Schubert 2b43a2f9c8 sysutils/screen49: Apply patches to multiple CVEs
Apply patches to multple CVEs. Upstream has not released a new
point release of the 4.9 branch. This is a best effort attempt to
keep screen 4.9 in ports, for now. Any future CVEs will result in
its removal.

PR:		286743
Requested by:	danfe
2025-05-13 08:51:00 -07:00

16 lines
346 B
C

--- termcap.c.orig 2023-08-16 00:29:26 UTC
+++ termcap.c
@@ -361,11 +361,7 @@ int he;
if (D_CG0)
{
if (D_CS0 == 0)
-#ifdef TERMINFO
- D_CS0 = "\033(%p1%c";
-#else
- D_CS0 = "\033(%.";
-#endif
+ D_CS0 = "\033(%p1%c"; /* Old ncurses can't handle %. */
if (D_CE0 == 0)
D_CE0 = "\033(B";
D_AC = 0;