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

@ -309,7 +309,7 @@ bool PackedSourcePCK::try_open_pack(const String &p_path, bool p_replace_files,
cs[sl] = 0;
String path;
path.parse_utf8(cs.ptr());
path.parse_utf8(cs.ptr(), sl);
uint64_t ofs = f->get_64();
uint64_t size = f->get_64();