mirror of
https://github.com/xenia-project/xenia.git
synced 2025-12-06 07:12:03 +01:00
[Base] StringBuffer: Clear the C string in Reset
This commit is contained in:
parent
128fb32698
commit
c949ce3d9c
|
|
@ -27,7 +27,10 @@ StringBuffer::~StringBuffer() {
|
|||
buffer_ = nullptr;
|
||||
}
|
||||
|
||||
void StringBuffer::Reset() { buffer_offset_ = 0; }
|
||||
void StringBuffer::Reset() {
|
||||
buffer_offset_ = 0;
|
||||
buffer_[0] = 0;
|
||||
}
|
||||
|
||||
void StringBuffer::Grow(size_t additional_length) {
|
||||
if (buffer_offset_ + additional_length <= buffer_capacity_) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue