Merge pull request #15108 from poke1024/fix-stringbuffer-append
Fix crash in StringBuffer::append()
This commit is contained in:
commit
cfd6bafec6
@ -46,7 +46,7 @@ StringBuffer &StringBuffer::append(const char *p_str) {
|
||||
reserve(string_length + len + 1);
|
||||
|
||||
CharType *buf = current_buffer_ptr();
|
||||
for (const char *c_ptr = p_str; c_ptr; ++c_ptr) {
|
||||
for (const char *c_ptr = p_str; *c_ptr; ++c_ptr) {
|
||||
buf[string_length++] = *c_ptr;
|
||||
}
|
||||
return *this;
|
||||
|
Loading…
Reference in New Issue
Block a user