diff options
Diffstat (limited to 'lib/sqfs/dir_writer.c')
-rw-r--r-- | lib/sqfs/dir_writer.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/sqfs/dir_writer.c b/lib/sqfs/dir_writer.c index 3598dd2..ffe14f4 100644 --- a/lib/sqfs/dir_writer.c +++ b/lib/sqfs/dir_writer.c @@ -318,7 +318,8 @@ sqfs_inode_generic_t inode->data.dir_ext.parent_inode = parent_ino; inode->data.dir_ext.offset = block_offset; inode->data.dir_ext.xattr_idx = xattr; - inode->data.dir_ext.inodex_count = writer->idx_size; + inode->data.dir_ext.inodex_count = + writer->idx_size ? (writer->idx_size - 1) : 0; } return inode; |