diff options
author | Noshyaar <poommetee@protonmail.com> | 2017-12-28 06:57:20 +0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-28 06:57:20 +0700 |
commit | cfd6bafec60c123a07477a3d0eb5c6545e0a82ed (patch) | |
tree | 5e7a6d508d596e0addcfec3cc7925f34974ffa2b | |
parent | ef2ab0de82d7e093d8397078e8cf720820bec8a0 (diff) | |
parent | 0d578fb765b355a0c1dfcdace3367e9787556643 (diff) |
Merge pull request #15108 from poke1024/fix-stringbuffer-append
Fix crash in StringBuffer::append()
-rw-r--r-- | core/string_buffer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/string_buffer.cpp b/core/string_buffer.cpp index 8489df2599..3b47685fc9 100644 --- a/core/string_buffer.cpp +++ b/core/string_buffer.cpp @@ -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; |