diff options
| author | Noshyaar | 2017-12-28 06:57:20 +0700 |
|---|---|---|
| committer | GitHub | 2017-12-28 06:57:20 +0700 |
| commit | cfd6bafec60c123a07477a3d0eb5c6545e0a82ed (patch) | |
| tree | 5e7a6d508d596e0addcfec3cc7925f34974ffa2b /core/string_buffer.cpp | |
| parent | ef2ab0de82d7e093d8397078e8cf720820bec8a0 (diff) | |
| parent | 0d578fb765b355a0c1dfcdace3367e9787556643 (diff) | |
| download | godot-cfd6bafec60c123a07477a3d0eb5c6545e0a82ed.tar.gz godot-cfd6bafec60c123a07477a3d0eb5c6545e0a82ed.tar.zst godot-cfd6bafec60c123a07477a3d0eb5c6545e0a82ed.zip | |
Merge pull request #15108 from poke1024/fix-stringbuffer-append
Fix crash in StringBuffer::append()
Diffstat (limited to 'core/string_buffer.cpp')
| -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 8489df259..3b47685fc 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; |
