diff --git a/src/fterm.cpp b/src/fterm.cpp index b35de723..a1acd4ae 100644 --- a/src/fterm.cpp +++ b/src/fterm.cpp @@ -709,10 +709,10 @@ void FTerm::signal_handler (int signum) } //---------------------------------------------------------------------- -char* FTerm::init_256colorTerminal (char current_termtype[]) +char* FTerm::init_256colorTerminal() { char local256[80] = ""; - char* new_termtype = current_termtype; + char* new_termtype = 0; char *s1, *s2, *s3, *s4, *s5, *s6; // Enable 256 color capabilities @@ -1343,7 +1343,7 @@ void FTerm::init() strncpy (termtype, const_cast("vt100"), 6); // initialize 256 colors terminals - new_termtype = init_256colorTerminal (termtype); + new_termtype = init_256colorTerminal(); if ( strncmp(termtype, "cygwin", 6) == 0 ) cygwin_terminal = true; diff --git a/src/fterm.h b/src/fterm.h index 261d98dc..9daf4fce 100644 --- a/src/fterm.h +++ b/src/fterm.h @@ -242,7 +242,7 @@ class FTerm static void init_console(); static uInt getBaudRate (const struct termios*); static void init_consoleCharMap(); - static char* init_256colorTerminal(char[]); + static char* init_256colorTerminal(); static char* parseAnswerbackMsg(char*&); static char* parseSecDA(char*&); static void init_termcaps();