summaryrefslogtreecommitdiff
path: root/ufs-fsck/dir.c
diff options
context:
space:
mode:
Diffstat (limited to 'ufs-fsck/dir.c')
-rw-r--r--ufs-fsck/dir.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ufs-fsck/dir.c b/ufs-fsck/dir.c
index d4f05858..b058fe9e 100644
--- a/ufs-fsck/dir.c
+++ b/ufs-fsck/dir.c
@@ -31,7 +31,7 @@ record_directory (struct dinode *dp, ino_t number)
blks = howmany (dp->di_size, sblock->fs_bsize);
if (blks > NDADDR)
- blks = NDADDR * NIADDR;
+ blks = NDADDR + NIADDR;
blks *= sizeof (daddr_t);
dnp = malloc (sizeof (struct dirinfo) + blks);