diff options
author | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2020-01-19 17:45:57 +0100 |
---|---|---|
committer | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2020-01-19 17:45:57 +0100 |
commit | 84bd62267760fd02db895e21c5c2c8bf20162342 (patch) | |
tree | 26736f04c770164a155256f819144c017842e892 /lib | |
parent | 6d680a93d1a2b1921d3b0b45e94f396d23a96f7b (diff) |
Fix directory index accounting when reading inodes
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/sqfs/read_inode.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/sqfs/read_inode.c b/lib/sqfs/read_inode.c index 11d7a1c..f7bfff0 100644 --- a/lib/sqfs/read_inode.c +++ b/lib/sqfs/read_inode.c @@ -299,6 +299,8 @@ static int read_inode_dir_ext(sqfs_meta_reader_t *ir, sqfs_inode_t *base, free(out); return err; } + + index_used += ent.size + 1; } out->num_dir_idx_bytes = index_used; |