summaryrefslogtreecommitdiff
path: root/sbin/fsck_ffs/pass5.c
diff options
context:
space:
mode:
authorOtto Moerbeek <otto@cvs.openbsd.org>2007-05-11 08:28:53 +0000
committerOtto Moerbeek <otto@cvs.openbsd.org>2007-05-11 08:28:53 +0000
commitcdb3ab5492ffd4d895cfd28b9d5f5839ea201ce4 (patch)
treeeddcc46d5c7d6b5ee427d4b02d9f3fd46fbc07de /sbin/fsck_ffs/pass5.c
parent68103a2cac60ac11ce9a3c0435bd9627b290e6a9 (diff)
pass the right size arg to memset, otherwise we end up with a
partially initialized summary info struct. ok millert@ pedro@
Diffstat (limited to 'sbin/fsck_ffs/pass5.c')
-rw-r--r--sbin/fsck_ffs/pass5.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sbin/fsck_ffs/pass5.c b/sbin/fsck_ffs/pass5.c
index 19f07101346..a14f53aa3ef 100644
--- a/sbin/fsck_ffs/pass5.c
+++ b/sbin/fsck_ffs/pass5.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pass5.c,v 1.30 2007/05/05 22:17:34 millert Exp $ */
+/* $OpenBSD: pass5.c,v 1.31 2007/05/11 08:28:52 otto Exp $ */
/* $NetBSD: pass5.c,v 1.16 1996/09/27 22:45:18 christos Exp $ */
/*
@@ -34,7 +34,7 @@
#if 0
static char sccsid[] = "@(#)pass5.c 8.6 (Berkeley) 11/30/94";
#else
-static const char rcsid[] = "$OpenBSD: pass5.c,v 1.30 2007/05/05 22:17:34 millert Exp $";
+static const char rcsid[] = "$OpenBSD: pass5.c,v 1.31 2007/05/11 08:28:52 otto Exp $";
#endif
#endif /* not lint */
@@ -177,7 +177,7 @@ pass5(void)
if (doinglevel2)
idesc[i].id_fix = FIX;
}
- memset(&cstotal, 0, sizeof(struct csum));
+ memset(&cstotal, 0, sizeof(struct csum_total));
j = blknum(fs, fs->fs_size + fs->fs_frag - 1);
for (i = fs->fs_size; i < j; i++)
setbmap(i);