diff options
author | Michael I. Bushnell <mib@gnu.org> | 1994-10-19 18:02:27 +0000 |
---|---|---|
committer | Michael I. Bushnell <mib@gnu.org> | 1994-10-19 18:02:27 +0000 |
commit | 39e15a808a3b6ede27272cfe84aa64d0496fe3fc (patch) | |
tree | 6795a8f2e7642cd882106f4dfa5da43dcdd4cb03 /ufs-fsck | |
parent | ecb4fa8064fc2abc79ceed21f9c5ed3de22e6257 (diff) |
Formerly pass5.c.~8~
Diffstat (limited to 'ufs-fsck')
-rw-r--r-- | ufs-fsck/pass5.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/ufs-fsck/pass5.c b/ufs-fsck/pass5.c index 84c37285..4a045e7f 100644 --- a/ufs-fsck/pass5.c +++ b/ufs-fsck/pass5.c @@ -69,7 +69,7 @@ pass5 () int c; daddr_t d; struct cg *cg = alloca (sblock->fs_cgsize); - char csumbuf[fragroundup (sblock, sizeof (struct csum) * sblock->fs_ncg)]; + char csumbuf[fragroundup (sblock, sblock->fs_cssize)]; struct csum *sbcsums = (struct csum *)csumbuf; int basesize; /* size of cg not counting flexibly sized */ @@ -84,7 +84,7 @@ pass5 () writecsum = 0; readblock (fsbtodb (sblock, sblock->fs_csaddr), csumbuf, - fragroundup (sblock, sizeof (struct csum) * sblock->fs_ncg)); + fragroundup (sblock, sblock->fs_cssize)); /* Construct a CG structure; initialize everything that's the same in each cylinder group. */ @@ -375,5 +375,6 @@ pass5 () writeblock (SBLOCK, &sblock, SBSIZE); if (writecsum) writeblock (fsbtodb (sblock, sblock->fs_csaddr), csumbuf, - fragroundup (sblock, sizeof (struct csum) * sblock->fs_ncg)); + fragroundup (sblock, sblock->fs_cssize)); + } |