Merge pull request #99834 from kiroxas/passLengthToParseUTF8
Ensure `parse_utf8` has length of string passed in when available
This commit is contained in:
commit
1719f8ed3d
10 changed files with 13 additions and 15 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue