Explorar o código

libc: fix typo in statvfs

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Bernhard Reutner-Fischer %!s(int64=12) %!d(string=hai) anos
pai
achega
9591091f15
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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;
   buf->__f_unused = 0;
 #endif
 #endif
   buf->f_namemax = fsbuf.f_namelen;
   buf->f_namemax = fsbuf.f_namelen;
-  memset (buf->__f_spare, '\0', sizeof(buf.__f_spare));
+  memset (buf->__f_spare, '\0', sizeof(buf->__f_spare));
   /* XXX I have no idea how to compute f_favail.  Any idea???  */
   /* XXX I have no idea how to compute f_favail.  Any idea???  */
   buf->f_favail = buf->f_ffree;
   buf->f_favail = buf->f_ffree;