1
0
Fork 0

Fix crash in StringBuffer::append()

This commit is contained in:
Bernhard Liebl 2017-12-27 20:19:17 +01:00
parent a663dbfdd8
commit 0d578fb765
1 changed files with 1 additions and 1 deletions

View File

@ -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;