summaryrefslogtreecommitdiff
path: root/lib/common/data_writer.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/common/data_writer.c')
-rw-r--r--lib/common/data_writer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/common/data_writer.c b/lib/common/data_writer.c
index 8ebd868..0b4dc07 100644
--- a/lib/common/data_writer.c
+++ b/lib/common/data_writer.c
@@ -22,7 +22,7 @@ int write_data_from_file(const char *filename, sqfs_block_processor_t *data,
return -1;
}
- sqfs_inode_get_file_size(inode, &filesz);
+ filesz = file->get_size(file);
for (offset = 0; offset < filesz; offset += diff) {
if (filesz - offset > sizeof(buffer)) {