You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-09 12:50:35 +00:00
Fix crash in StringBuffer::append()
This commit is contained in:
@@ -46,7 +46,7 @@ StringBuffer &StringBuffer::append(const char *p_str) {
|
|||||||
reserve(string_length + len + 1);
|
reserve(string_length + len + 1);
|
||||||
|
|
||||||
CharType *buf = current_buffer_ptr();
|
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;
|
buf[string_length++] = *c_ptr;
|
||||||
}
|
}
|
||||||
return *this;
|
return *this;
|
||||||
|
|||||||
Reference in New Issue
Block a user