From a0306fea8bcc7866c1d5e96d817a266f70443236 Mon Sep 17 00:00:00 2001 From: Akash Mozumdar Date: Thu, 5 Mar 2020 02:23:53 -0700 Subject: [PATCH] remove all nulls --- GUI/host/textthread.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GUI/host/textthread.cpp b/GUI/host/textthread.cpp index 2628151..0740a64 100644 --- a/GUI/host/textthread.cpp +++ b/GUI/host/textthread.cpp @@ -83,7 +83,7 @@ void TextThread::Flush() for (auto& sentence : sentences) { totalSize += sentence.size(); - sentence.erase(std::remove(sentence.begin(), sentence.end(), L'\0')); + sentence.erase(std::remove(sentence.begin(), sentence.end(), L'\0'), sentence.end()); if (Output(*this, sentence)) storage->append(sentence); }