Merge branch 'master' into d3d12

This commit is contained in:
Triang3l 2018-11-10 16:34:20 +03:00
commit 95ed3ea158
1 changed files with 4 additions and 1 deletions

View File

@ -27,7 +27,10 @@ StringBuffer::~StringBuffer() {
buffer_ = nullptr; buffer_ = nullptr;
} }
void StringBuffer::Reset() { buffer_offset_ = 0; } void StringBuffer::Reset() {
buffer_offset_ = 0;
buffer_[0] = 0;
}
void StringBuffer::Grow(size_t additional_length) { void StringBuffer::Grow(size_t additional_length) {
if (buffer_offset_ + additional_length <= buffer_capacity_) { if (buffer_offset_ + additional_length <= buffer_capacity_) {