From d7aa8f3a707a9148423a9a1adef04a569f55edff Mon Sep 17 00:00:00 2001 From: Markus Gans Date: Sun, 26 Mar 2017 21:44:09 +0200 Subject: [PATCH] termtype was not null terminated --- src/fterm.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 )