Explorar o código

bug: incorrect variable passed to linux stat function

Douglas A hai 1 ano
pai
achega
5fac8ef34f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/platform.h

+ 1 - 1
src/platform.h

@@ -20,7 +20,7 @@ static int platform_stat(const char *path, void *buf)
     return _stat(path, bufstat);
   #else 
     struct stat *bufstat = (struct stat*) buf;
-    return stat(path, buf);
+    return stat(path, bufstat);
   #endif
 }