summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Userland/Services/TelnetServer/Parser.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/Userland/Services/TelnetServer/Parser.cpp b/Userland/Services/TelnetServer/Parser.cpp
index 89aa2eeeac..468c607ba5 100644
--- a/Userland/Services/TelnetServer/Parser.cpp
+++ b/Userland/Services/TelnetServer/Parser.cpp
@@ -24,6 +24,10 @@ void Parser::write(StringView data)
if (on_data)
on_data("\n");
break;
+ case '\0':
+ case '\n':
+ // Ignore.
+ break;
default:
if (on_data)
on_data(StringView(&ch, 1));