summaryrefslogtreecommitdiff
path: root/lib/sqfs/write_dir.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/sqfs/write_dir.c')
-rw-r--r--lib/sqfs/write_dir.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sqfs/write_dir.c b/lib/sqfs/write_dir.c
index 9f8923b..909e0bb 100644
--- a/lib/sqfs/write_dir.c
+++ b/lib/sqfs/write_dir.c
@@ -99,7 +99,7 @@ int meta_writer_write_dir(meta_writer_t *dm, dir_info_t *dir,
i = (*index)->num_nodes++;
(*index)->idx_nodes[i].node = c;
(*index)->idx_nodes[i].block = block;
- (*index)->idx_nodes[i].offset = offset;
+ (*index)->idx_nodes[i].index = dir->size;
hdr.count = htole32(count - 1);
hdr.start_block = htole32(c->inode_ref >> 16);