summaryrefslogtreecommitdiff
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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/sqfs/id_table_write.c b/lib/sqfs/id_table_write.c
index c2ed353..3bbe302 100644
--- a/lib/sqfs/id_table_write.c
+++ b/lib/sqfs/id_table_write.c
@@ -15,8 +15,8 @@ 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, &start, cmp);
+ ret = sqfs_write_table(outfd, super, cmp, tbl->ids,
+ sizeof(tbl->ids[0]) * tbl->num_ids, &start);
super->id_table_start = start;