mirror of
https://github.com/minetest/minetest.git
synced 2024-11-27 01:53:45 +01:00
Android: Fix recursive delete (#7882)
This commit is contained in:
parent
67b20ff15a
commit
015e46310a
@ -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];
|
||||
|
Loading…
Reference in New Issue
Block a user