summaryrefslogtreecommitdiffstats
path: root/sbin/fsck_ifs
diff options
context:
space:
mode:
authordfr <dfr@FreeBSD.org>1998-08-01 18:03:28 +0000
committerdfr <dfr@FreeBSD.org>1998-08-01 18:03:28 +0000
commit09c162db9e35ed689df2e18e8bcce420c839e04a (patch)
tree3a9f350ff1766d283a6b44bafea34db3d02e328d /sbin/fsck_ifs
parentca58652ab641e180f93eabe65c5d83495f9b6275 (diff)
downloadFreeBSD-src-09c162db9e35ed689df2e18e8bcce420c839e04a.zip
FreeBSD-src-09c162db9e35ed689df2e18e8bcce420c839e04a.tar.gz
Avoid trying to malloc > (1<<32) bytes of memory due to an arithmetic
underflow on the alpha.
Diffstat (limited to 'sbin/fsck_ifs')
-rw-r--r--sbin/fsck_ifs/inode.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/fsck_ifs/inode.c b/sbin/fsck_ifs/inode.c
index d079841..b7e80cd 100644
--- a/sbin/fsck_ifs/inode.c
+++ b/sbin/fsck_ifs/inode.c
@@ -36,7 +36,7 @@
static const char sccsid[] = "@(#)inode.c 8.8 (Berkeley) 4/28/95";
#endif
static const char rcsid[] =
- "$Id: inode.c,v 1.14 1998/06/15 07:07:12 charnier Exp $";
+ "$Id: inode.c,v 1.15 1998/06/28 19:23:02 bde Exp $";
#endif /* not lint */
#include <sys/param.h>
@@ -372,7 +372,7 @@ cacheino(dp, inumber)
{
register struct inoinfo *inp;
struct inoinfo **inpp;
- unsigned int blks;
+ int blks;
blks = howmany(dp->di_size, sblock.fs_bsize);
if (blks > NDADDR)
OpenPOWER on IntegriCloud