diff options
Diffstat (limited to 'lib/sqfs/data_reader.c')
-rw-r--r-- | lib/sqfs/data_reader.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/sqfs/data_reader.c b/lib/sqfs/data_reader.c index 5facaa1..a7d605e 100644 --- a/lib/sqfs/data_reader.c +++ b/lib/sqfs/data_reader.c @@ -205,8 +205,7 @@ int data_reader_dump_file(data_reader_t *data, file_info_t *fi, int outfd, size_t fragsz = fi->size % data->block_size; size_t count = fi->size / data->block_size; - if (fragsz != 0 && (fi->fragment == 0xFFFFFFFF || - fi->fragment_offset == 0xFFFFFFFF)) { + if (fragsz != 0 && !(fi->flags & FILE_FLAG_HAS_FRAGMENT)) { fragsz = 0; ++count; } |