Fix crash in StringBuffer::append()
This commit is contained in:
parent
a663dbfdd8
commit
0d578fb765
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue