OSDN Git Service

libc: fix typo in statvfs
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Mon, 21 Jan 2013 11:14:39 +0000 (12:14 +0100)
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Mon, 21 Jan 2013 11:14:39 +0000 (12:14 +0100)
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
libc/misc/statfs/internal_statvfs.c

index 7176739..ab02826 100644 (file)
@@ -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;