aboutsummaryrefslogtreecommitdiff
path: root/core/string_buffer.cpp
diff options
context:
space:
mode:
authorJuan Linietsky2017-11-25 00:07:54 -0300
committerJuan Linietsky2017-11-25 00:09:40 -0300
commitbc2e8d99e5ae0dbd69e712cc71da3033f5f30139 (patch)
treed836011e3d5873e3ceea328ea3100f3c7719ab99 /core/string_buffer.cpp
parent7dfba3cda9f13427f9f10a6eefbec52aef62274c (diff)
downloadgodot-bc2e8d99e5ae0dbd69e712cc71da3033f5f30139.tar.gz
godot-bc2e8d99e5ae0dbd69e712cc71da3033f5f30139.tar.zst
godot-bc2e8d99e5ae0dbd69e712cc71da3033f5f30139.zip
Diffstat (limited to 'core/string_buffer.cpp')
-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 195068f88..8489df259 100644
--- a/core/string_buffer.cpp
+++ b/core/string_buffer.cpp
@@ -71,7 +71,7 @@ StringBuffer &StringBuffer::reserve(int p_size) {
bool need_copy = string_length > 0 && buffer.empty();
buffer.resize(next_power_of_2(p_size));
if (need_copy) {
- memcpy(buffer.ptr(), short_buffer, string_length * sizeof(CharType));
+ memcpy(buffer.ptrw(), short_buffer, string_length * sizeof(CharType));
}
return *this;