Skip to content
Permalink
Browse files

Android: Fix recursive delete (#7882)

  • Loading branch information...
stujones11 authored and paramat committed Nov 21, 2018
1 parent 67b20ff commit 015e46310aba7275f620e3abdf24091c0c6bc947
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/filesys.cpp
@@ -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];

0 comments on commit 015e463

Please sign in to comment.
You can’t perform that action at this time.