Android: Fix recursive delete (#7882)

master
stujones11 2018-11-21 23:06:03 +00:00 committed by Paramat
parent 67b20ff15a
commit 015e46310a
1 changed files with 4 additions and 0 deletions

View File

@ -303,7 +303,11 @@ bool RecursiveDelete(const std::string &path)
{
// Child
char argv_data[3][10000];
#ifdef __ANDROID__
strcpy(argv_data[0], "/system/bin/rm");
#else
strcpy(argv_data[0], "/bin/rm");
#endif
strcpy(argv_data[1], "-rf");
strncpy(argv_data[2], path.c_str(), 10000);
char *argv[4];