mirror of
https://github.com/EnderIce2/Fennix.git
synced 2025-07-01 10:29:16 +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);
|
std::copy(begin() + index + count, end(), begin() + index);
|
||||||
_size -= count;
|
_size -= count;
|
||||||
|
_data[_size] = '\0';
|
||||||
}
|
}
|
||||||
|
|
||||||
return *this;
|
return *this;
|
||||||
|
Reference in New Issue
Block a user