vt: execute: handle \0 (NUL), by ignoring it

This commit is contained in:
Daniel Eklöf 2019-07-18 12:19:54 +02:00
parent d2e0ba3670
commit 332f1c6a21
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

3
vt.c
View file

@ -789,6 +789,9 @@ action(struct terminal *term, enum action _action, uint8_t c)
case ACTION_EXECUTE:
LOG_DBG("execute: 0x%02x", c);
switch (c) {
case '\0':
break;
case '\n':
/* LF - line feed */
term_linefeed(term);