src/os/linux/vm/os_linux.cpp

changeset 9711
0f2fe7d37d8c
parent 9676
bf1c9a3312a4
child 9756
2be326848943
child 9858
b985cbb00e68
     1.1 --- a/src/os/linux/vm/os_linux.cpp	Tue Apr 30 14:49:19 2019 +0200
     1.2 +++ b/src/os/linux/vm/os_linux.cpp	Mon Jun 17 16:41:38 2019 +0100
     1.3 @@ -5501,8 +5501,7 @@
     1.4  
     1.5    /* Scan the directory */
     1.6    bool result = true;
     1.7 -  char buf[sizeof(struct dirent) + MAX_PATH];
     1.8 -  while (result && (ptr = ::readdir(dir)) != NULL) {
     1.9 +  while (result && (ptr = readdir(dir)) != NULL) {
    1.10      if (strcmp(ptr->d_name, ".") != 0 && strcmp(ptr->d_name, "..") != 0) {
    1.11        result = false;
    1.12      }

mercurial