Skip to content

Commit

Permalink
remove all nulls
Browse files Browse the repository at this point in the history
  • Loading branch information
Artikash committed Mar 5, 2020
1 parent 2be920c commit a0306fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion GUI/host/textthread.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit a0306fe

Please sign in to comment.