diff --git a/src/fterm.cpp b/src/fterm.cpp index d0980ad2..95d43563 100644 --- a/src/fterm.cpp +++ b/src/fterm.cpp @@ -2668,7 +2668,7 @@ void FTerm::init_termcaps() if ( status != success ) { // use xterm as fallback if not found - std::strncpy (termtype, const_cast("xterm"), 5); + std::strncpy (termtype, const_cast("xterm"), 6); status = tgetent(term_buffer, termtype); if ( status != success )