1
0
mirror of https://github.com/godotengine/godot.git synced 2026-01-06 19:41:11 +00:00

Merge pull request #99834 from kiroxas/passLengthToParseUTF8

Ensure `parse_utf8` has length of string passed in when available
This commit is contained in:
Thaddeus Crews
2024-12-03 14:41:06 -06:00
10 changed files with 13 additions and 15 deletions

View File

@@ -1537,7 +1537,7 @@ String EditorExportPlatformAndroid::_parse_string(const uint8_t *p_bytes, bool p
}
str8.write[len] = 0;
String str;
str.parse_utf8((const char *)str8.ptr());
str.parse_utf8((const char *)str8.ptr(), len);
return str;
} else {
String str;