fix(kernel/std): ensure null termination after removing elements in std::string::erase

This commit is contained in:
2025-04-15 15:38:20 +00:00
parent 0fffc6c914
commit 8c4c8d36de

View File

@ -1579,6 +1579,7 @@ namespace std
{ {
std::copy(begin() + index + count, end(), begin() + index); std::copy(begin() + index + count, end(), begin() + index);
_size -= count; _size -= count;
_data[_size] = '\0';
} }
return *this; return *this;