From ce075b4123cf28730945d931603ae3e1b21bd906 Mon Sep 17 00:00:00 2001 From: Martin Michelsen Date: Thu, 12 May 2022 11:54:58 -0700 Subject: [PATCH] fix handling of uncleared after-string data from psobb --- src/Text.hh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/Text.hh b/src/Text.hh index 0a6b5c1c..409611fb 100644 --- a/src/Text.hh +++ b/src/Text.hh @@ -423,9 +423,7 @@ struct ptext : parray { } operator std::basic_string() const { - std::basic_string ret(this->items, Count); - strip_trailing_zeroes(ret); - return ret; + return std::basic_string(this->items, this->len()); } bool empty() const {