1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

Core: Fix invalid resize after appending

This commit is contained in:
Stuart Carnie
2025-06-18 08:57:05 +10:00
parent 46c495ca21
commit 4b3800582e

View File

@@ -1946,7 +1946,7 @@ Error String::append_utf8(const char *p_utf8, int p_len, bool p_skip_cr) {
}
(*dst++) = 0;
resize_uninitialized(prev_length + dst - ptr());
resize_uninitialized(dst - ptr());
return result;
}