summaryrefslogtreecommitdiffstats
path: root/sbin/fsck_ffs
diff options
context:
space:
mode:
authormckusick <mckusick@FreeBSD.org>2001-03-31 22:17:38 +0000
committermckusick <mckusick@FreeBSD.org>2001-03-31 22:17:38 +0000
commit083b9a8fbebc9b99d94c2a90541462bc70137ef4 (patch)
treeea0183798ed0ebc3811178adc8ac38aa49f8ef56 /sbin/fsck_ffs
parent7b7a57f7574ffd1cd4e8d44b900c781239e7a8d5 (diff)
downloadFreeBSD-src-083b9a8fbebc9b99d94c2a90541462bc70137ef4.zip
FreeBSD-src-083b9a8fbebc9b99d94c2a90541462bc70137ef4.tar.gz
Use fs->fs_ipg rather than cg->cg_niblk as the latter is only
16-bits and may overflow. Obtained from: Bruce Evans <bde@zeta.org.au>
Diffstat (limited to 'sbin/fsck_ffs')
-rw-r--r--sbin/fsck_ffs/pass5.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/fsck_ffs/pass5.c b/sbin/fsck_ffs/pass5.c
index 45ca865..5d334f9 100644
--- a/sbin/fsck_ffs/pass5.c
+++ b/sbin/fsck_ffs/pass5.c
@@ -206,7 +206,7 @@ pass5()
newcg->cg_frotor = cg->cg_frotor;
else
newcg->cg_frotor = 0;
- if (cg->cg_irotor < newcg->cg_niblk)
+ if (cg->cg_irotor < fs->fs_ipg)
newcg->cg_irotor = cg->cg_irotor;
else
newcg->cg_irotor = 0;
OpenPOWER on IntegriCloud