(TTYinfo): copy backspace string to avoid referencing into a local

variable.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6760 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
1999-08-06 16:55:19 +00:00
parent 89bb20cf7c
commit 1ad612e90e

View File

@@ -239,7 +239,7 @@ TTYinfo()
TTYrows = SCREEN_ROWS;
return;
}
backspace = tgetstr("le", &bp);
backspace = strdup(tgetstr("le", &bp));
TTYwidth = tgetnum("co");
TTYrows = tgetnum("li");