From d9a9616195e9eda2c5651356d208e626f6c650e5 Mon Sep 17 00:00:00 2001 From: Dees_Troy Date: Thu, 20 Dec 2012 17:44:35 +0000 Subject: Increase array size to fix crashes on some devices --- twrp-functions.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/twrp-functions.cpp b/twrp-functions.cpp index b121c8a82..3a2658e75 100644 --- a/twrp-functions.cpp +++ b/twrp-functions.cpp @@ -186,7 +186,7 @@ unsigned long long TWFunc::Get_Folder_Size(string Path, bool Display_Error) { DIR* d; struct dirent* de; struct stat st; - char path2[1024], filename[1024]; + char path2[4096], filename[4096]; unsigned long long dusize = 0; // Make a copy of path in case the data in the pointer gets overwritten later -- cgit v1.2.3