You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Fix decoding UTF-8 filenames on unzipping.
(cherry picked from commit d2573c1636)
This commit is contained in:
@@ -1265,10 +1265,10 @@ public:
|
||||
while (ret == UNZ_OK) {
|
||||
// get file name
|
||||
unz_file_info info;
|
||||
char fname[16834];
|
||||
ret = unzGetCurrentFileInfo(pkg, &info, fname, 16834, nullptr, 0, nullptr, 0);
|
||||
char fname[16384];
|
||||
ret = unzGetCurrentFileInfo(pkg, &info, fname, 16384, nullptr, 0, nullptr, 0);
|
||||
|
||||
String path = fname;
|
||||
String path = String::utf8(fname);
|
||||
|
||||
if (path.ends_with("/")) {
|
||||
// Ignore directories
|
||||
|
||||
Reference in New Issue
Block a user