Parcourir la source

bug: incorrect variable passed to linux stat function

Douglas A il y a 1 an
Parent
commit
5fac8ef34f
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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
 }