mirror of
https://github.com/EnderIce2/Fennix.git
synced 2025-07-01 02:19:15 +00:00
fix(kernel/std): ensure null termination after removing elements in std::string::erase
This commit is contained in:
@ -1579,6 +1579,7 @@ namespace std
|
||||
{
|
||||
std::copy(begin() + index + count, end(), begin() + index);
|
||||
_size -= count;
|
||||
_data[_size] = '\0';
|
||||
}
|
||||
|
||||
return *this;
|
||||
|
Reference in New Issue
Block a user