termtype was not null terminated
This commit is contained in:
parent
4b93b71a6d
commit
d7aa8f3a70
|
@ -2668,7 +2668,7 @@ void FTerm::init_termcaps()
|
|||
if ( status != success )
|
||||
{
|
||||
// use xterm as fallback if not found
|
||||
std::strncpy (termtype, const_cast<char*>("xterm"), 5);
|
||||
std::strncpy (termtype, const_cast<char*>("xterm"), 6);
|
||||
status = tgetent(term_buffer, termtype);
|
||||
|
||||
if ( status != success )
|
||||
|
|
Loading…
Reference in New Issue