Procházet zdrojové kódy

bug: incorrect variable passed to linux stat function

Douglas A před 1 rokem
rodič
revize
5fac8ef34f
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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
 }