mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
Merge pull request #107646 from stuartcarnie/string_append_utf8_bug
Core: Fix invalid resize after appending
This commit is contained in:
commit
8de08c7c21
1 changed files with 1 additions and 1 deletions
|
@ -1918,7 +1918,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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue