diff options
Diffstat (limited to 'disk-utils/fsck.minix.c')
-rw-r--r-- | disk-utils/fsck.minix.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/disk-utils/fsck.minix.c b/disk-utils/fsck.minix.c index 03a4746..0890358 100644 --- a/disk-utils/fsck.minix.c +++ b/disk-utils/fsck.minix.c @@ -548,7 +548,7 @@ get_dirsize(void) { block = Inode[ROOT_INO].i_zone[0]; read_block(block, blk); - for (size = 16; size < MINIX_BLOCK_SIZE; size <<= 1) { + for (size = 16; size + 2 < MINIX_BLOCK_SIZE; size <<= 1) { if (strcmp(blk + size + 2, "..") == 0) { dirsize = size; namelen = size - 2; |