summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2020-01-19 17:45:57 +0100
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2020-01-19 17:45:57 +0100
commit84bd62267760fd02db895e21c5c2c8bf20162342 (patch)
tree26736f04c770164a155256f819144c017842e892
parent6d680a93d1a2b1921d3b0b45e94f396d23a96f7b (diff)
Fix directory index accounting when reading inodes
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
-rw-r--r--lib/sqfs/read_inode.c2
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;