Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 652ce94f authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "libsparse: Fix odd-sized input files total_blks"

parents 06039e58 3738968e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -584,7 +584,7 @@ static int output_file_init(struct output_file *out, int block_size,
				.file_hdr_sz = SPARSE_HEADER_LEN,
				.chunk_hdr_sz = CHUNK_HEADER_LEN,
				.blk_sz = out->block_size,
				.total_blks = out->len / out->block_size,
				.total_blks = DIV_ROUND_UP(out->len, out->block_size),
				.total_chunks = chunks,
				.image_checksum = 0
		};