Browse Source

libc: fix typo in statvfs

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Bernhard Reutner-Fischer 13 năm trước cách đây
mục cha
commit
b03d5855fe
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      libc/misc/statfs/internal_statvfs.c

+ 1 - 1
libc/misc/statfs/internal_statvfs.c

@@ -45,7 +45,7 @@
   buf->__f_unused = 0;
 #endif
   buf->f_namemax = fsbuf.f_namelen;
-  memset (buf->__f_spare, '\0', sizeof(fsbuf.f_spare));
+  memset (buf->__f_spare, '\0', sizeof(buf.__f_spare));
   /* XXX I have no idea how to compute f_favail.  Any idea???  */
   buf->f_favail = buf->f_ffree;