diff options
author | 1997-07-22 10:31:50 +0000 | |
---|---|---|
committer | 1997-07-22 10:31:50 +0000 | |
commit | 1ae2c527a7fc0637bc018e19992fdb4a4749ace4 (patch) | |
tree | a186cc1fbd4e7dfaceafc19878238e666ffad394 | |
parent | start the photuris daemon per default. hilfe. (diff) | |
download | wireguard-openbsd-1ae2c527a7fc0637bc018e19992fdb4a4749ace4.tar.xz wireguard-openbsd-1ae2c527a7fc0637bc018e19992fdb4a4749ace4.zip |
range error fix; mckusick@McKusick.COM
-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. |