Some code improvements
This commit is contained in:
parent
c00e3e3d80
commit
a591137f1c
|
@ -938,6 +938,7 @@ void FTerm::signal_handler (int signum)
|
||||||
void FTerm::init()
|
void FTerm::init()
|
||||||
{
|
{
|
||||||
char local256[80] = "";
|
char local256[80] = "";
|
||||||
|
char* term_env = 0;
|
||||||
char *s1, *s2, *s3, *s4, *s5, *s6;
|
char *s1, *s2, *s3, *s4, *s5, *s6;
|
||||||
|
|
||||||
output_buffer = new std::queue<int>;
|
output_buffer = new std::queue<int>;
|
||||||
|
@ -1003,7 +1004,7 @@ void FTerm::init()
|
||||||
x11_button_state = 0x03;
|
x11_button_state = 0x03;
|
||||||
|
|
||||||
// Import untrusted environment variable TERM
|
// Import untrusted environment variable TERM
|
||||||
const char* term_env = getenv("TERM");
|
term_env = getenv("TERM");
|
||||||
if ( term_env )
|
if ( term_env )
|
||||||
snprintf (termtype, sizeof(termtype), "%s", term_env);
|
snprintf (termtype, sizeof(termtype), "%s", term_env);
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue