mirror of
https://github.com/fluencelabs/musl
synced 2025-06-29 06:32:16 +00:00
fix statvfs syscalls (missing size argument)
This commit is contained in:
@ -4,7 +4,7 @@
|
||||
|
||||
int fstatvfs(int fd, struct statvfs *buf)
|
||||
{
|
||||
return syscall(SYS_fstatfs, fd, buf);
|
||||
return syscall(SYS_fstatfs, fd, sizeof *buf, buf);
|
||||
}
|
||||
|
||||
weak_alias(fstatvfs, fstatfs);
|
||||
|
@ -4,7 +4,7 @@
|
||||
|
||||
int statvfs(const char *path, struct statvfs *buf)
|
||||
{
|
||||
return syscall(SYS_statfs, path, buf);
|
||||
return syscall(SYS_statfs, path, sizeof *buf, buf);
|
||||
}
|
||||
|
||||
weak_alias(statvfs, statfs);
|
||||
|
Reference in New Issue
Block a user