File ncurses-6.1-boo1229028.patch of Package ncurses.38227

Allow that later on the terminal based on fallback can be freed!

---
 ncurses/tinfo/lib_setup.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- ncurses/tinfo/lib_setup.c
+++ ncurses/tinfo/lib_setup.c	2024-09-10 06:11:17.957883254 +0000
@@ -737,7 +737,7 @@ TINFO_SETUP_TERM(TERMINAL **tp,
 	    const TERMTYPE2 *fallback = _nc_fallback2(tname);
 
 	    if (fallback) {
-		TerminalType(termp) = *fallback;
+		_nc_copy_termtype2(&(TerminalType(termp)), fallback);
 		status = TGETENT_YES;
 	    }
 	}
openSUSE Build Service is sponsored by