summaryrefslogtreecommitdiff
path: root/libc/misc/statfs/fstatfs64.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/misc/statfs/fstatfs64.c')
-rw-r--r--libc/misc/statfs/fstatfs64.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libc/misc/statfs/fstatfs64.c b/libc/misc/statfs/fstatfs64.c
index 7221a0b79..bb9ca3063 100644
--- a/libc/misc/statfs/fstatfs64.c
+++ b/libc/misc/statfs/fstatfs64.c
@@ -33,9 +33,11 @@ int fstatfs64 (int fd, struct statfs64 *buf)
{
struct statfs buf32;
- if (__libc_fstatfs (fd, &buf32) < 0)
+ if (__libc_fstatfs (fd, (struct statfs *)buf) < 0)
return -1;
+ buf32 = *(struct statfs *)buf;
+
buf->f_type = buf32.f_type;
buf->f_bsize = buf32.f_bsize;
buf->f_blocks = buf32.f_blocks;