diff --git a/src/apps/terminal/TermParse.cpp b/src/apps/terminal/TermParse.cpp index c4dd657f69..c66cf06f4d 100644 --- a/src/apps/terminal/TermParse.cpp +++ b/src/apps/terminal/TermParse.cpp @@ -298,7 +298,7 @@ TermParse::EscParse(void *data) } parsestate = groundtable; now_coding = gNowCoding; - } + } switch (parsestate[c]) { case CASE_PRINT: diff --git a/src/apps/terminal/spawn.cpp b/src/apps/terminal/spawn.cpp index c3e59dd9d6..ec3dc2eebc 100644 --- a/src/apps/terminal/spawn.cpp +++ b/src/apps/terminal/spawn.cpp @@ -176,7 +176,7 @@ spawn_shell(int row, int col, const char *command, const char *coding) break; } else { // B_BUSY is a normal case - if (master != B_BUSY) + if (errno != B_BUSY) fprintf(stderr, "could not open %s: %s\n", ptyName, strerror(errno)); } }