aboutsummaryrefslogtreecommitdiff
path: root/lib/sqfs/id_table_write.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/sqfs/id_table_write.c')
-rw-r--r--lib/sqfs/id_table_write.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/sqfs/id_table_write.c b/lib/sqfs/id_table_write.c
index 490c2af..9a5aa48 100644
--- a/lib/sqfs/id_table_write.c
+++ b/lib/sqfs/id_table_write.c
@@ -5,6 +5,7 @@
int id_table_write(id_table_t *tbl, int outfd, sqfs_super_t *super,
compressor_t *cmp)
{
+ uint64_t start;
size_t i;
int ret;
@@ -14,7 +15,9 @@ int id_table_write(id_table_t *tbl, int outfd, sqfs_super_t *super,
super->id_count = tbl->num_ids;
ret = sqfs_write_table(outfd, super, tbl->ids, sizeof(tbl->ids[0]),
- tbl->num_ids, &super->id_table_start, cmp);
+ tbl->num_ids, &start, cmp);
+
+ super->id_table_start = start;
for (i = 0; i < tbl->num_ids; ++i)
tbl->ids[i] = le32toh(tbl->ids[i]);