Skip to content

Commit

Permalink
Android: Fix recursive delete (minetest#7882)
Browse files Browse the repository at this point in the history
  • Loading branch information
stujones11 authored and paramat committed Nov 21, 2018
1 parent 67b20ff commit 015e463
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/filesys.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit 015e463

Please sign in to comment.