From 332f1c6a218a58eed48003c4189e45eeaecc521b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Thu, 18 Jul 2019 12:19:54 +0200 Subject: [PATCH] vt: execute: handle \0 (NUL), by ignoring it --- vt.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/vt.c b/vt.c index 90f6980f..0751d1af 100644 --- a/vt.c +++ b/vt.c @@ -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);