From 0d578fb765b355a0c1dfcdace3367e9787556643 Mon Sep 17 00:00:00 2001 From: Bernhard Liebl Date: Wed, 27 Dec 2017 20:19:17 +0100 Subject: [PATCH] Fix crash in StringBuffer::append() --- core/string_buffer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/string_buffer.cpp b/core/string_buffer.cpp index 8489df2599e..3b47685fc90 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;