@@ -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
}