summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernhard Liebl <Bernhard.Liebl@gmx.org>2017-12-27 20:19:17 +0100
committerBernhard Liebl <Bernhard.Liebl@gmx.org>2017-12-27 20:21:50 +0100
commit0d578fb765b355a0c1dfcdace3367e9787556643 (patch)
tree9dab7f61a9ccf71f94cc80192faa80bba3f5468c
parenta663dbfdd8465d45a03e4880c0d907334236b260 (diff)
Fix crash in StringBuffer::append()
-rw-r--r--core/string_buffer.cpp2
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;