diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1997-07-22 10:31:51 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1997-07-22 10:31:51 +0000 |
commit | 0f364602ed265d87c37c5abcf311b8b5ba429d8c (patch) | |
tree | ba67843759ac0a8cacd5905d92db37476328775a /sys | |
parent | 683676071cbf619d5d92df71c73f816474fd8658 (diff) |
range error fix; mckusick@McKusick.COM
Diffstat (limited to 'sys')
-rw-r--r-- | sys/ufs/ffs/ffs_alloc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/ufs/ffs/ffs_alloc.c b/sys/ufs/ffs/ffs_alloc.c index a98f12f7460..e25073d6715 100644 --- a/sys/ufs/ffs/ffs_alloc.c +++ b/sys/ufs/ffs/ffs_alloc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ffs_alloc.c,v 1.6 1997/05/30 08:34:15 downsj Exp $ */ +/* $OpenBSD: ffs_alloc.c,v 1.7 1997/07/22 10:31:50 deraadt Exp $ */ /* $NetBSD: ffs_alloc.c,v 1.11 1996/05/11 18:27:09 mycroft Exp $ */ /* @@ -1109,7 +1109,7 @@ ffs_clusteralloc(ip, cg, bpref, len) bit = 1; } } - if (i == cgp->cg_nclusterblks) + if (i >= cgp->cg_nclusterblks) goto fail; /* * Allocate the cluster that we have found. |