summaryrefslogtreecommitdiffstats
path: root/sbin/growfs
diff options
context:
space:
mode:
Diffstat (limited to 'sbin/growfs')
-rw-r--r--sbin/growfs/growfs.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sbin/growfs/growfs.c b/sbin/growfs/growfs.c
index affae8e..370344a 100644
--- a/sbin/growfs/growfs.c
+++ b/sbin/growfs/growfs.c
@@ -1244,7 +1244,8 @@ updcsloc(time_t utime, int fsi, int fso, int Nflag)
if(bp == NULL) {
errx(1, "malloc failed");
}
- memset((char *)bp, 0, sizeof(struct gfs_bpp));
+ memset((char *)bp, 0, ((dupper-odupper)/sblock.fs_frag+2)*
+ sizeof(struct gfs_bpp));
/*
* Lock all new frags needed for the cylinder group summary. This is
OpenPOWER on IntegriCloud