diff options
Diffstat (limited to 'misc/e2image.c')
-rw-r--r-- | misc/e2image.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/misc/e2image.c b/misc/e2image.c index 081c66f7..358b3614 100644 --- a/misc/e2image.c +++ b/misc/e2image.c @@ -350,6 +350,8 @@ static void scramble_dir_block(ext2_filsys fs, blk_t blk, char *buf) #ifdef WORDS_BIGENDIAN rec_len = ext2fs_swab16(rec_len); #endif + rec_len = (rec_len || fs->blocksize < 65536) ? + rec_len : 65536; #if 0 printf("rec_len = %d, name_len = %d\n", rec_len, dirent->name_len); #endif |