summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libsparse/output_file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libsparse/output_file.c b/libsparse/output_file.c
index 21159987f..51e60ef79 100644
--- a/libsparse/output_file.c
+++ b/libsparse/output_file.c
@@ -584,7 +584,7 @@ static int output_file_init(struct output_file *out, int block_size,
584 .file_hdr_sz = SPARSE_HEADER_LEN, 584 .file_hdr_sz = SPARSE_HEADER_LEN,
585 .chunk_hdr_sz = CHUNK_HEADER_LEN, 585 .chunk_hdr_sz = CHUNK_HEADER_LEN,
586 .blk_sz = out->block_size, 586 .blk_sz = out->block_size,
587 .total_blks = out->len / out->block_size, 587 .total_blks = DIV_ROUND_UP(out->len, out->block_size),
588 .total_chunks = chunks, 588 .total_chunks = chunks,
589 .image_checksum = 0 589 .image_checksum = 0
590 }; 590 };