mirror of
https://github.com/aaru-dps/libaaruformat.git
synced 2025-12-16 11:14:39 +00:00
Fix metadata block header not being written to image.
This commit is contained in:
@@ -3304,6 +3304,8 @@ static void write_metadata_block(aaruformat_context *ctx)
|
||||
block_position = aligned_position;
|
||||
}
|
||||
|
||||
memcpy(buffer, &ctx->metadata_block_header, sizeof(MetadataBlockHeader));
|
||||
|
||||
TRACE("Writing metadata block at position %ld", block_position);
|
||||
|
||||
if(fwrite(buffer, ctx->metadata_block_header.blockSize, 1, ctx->imageStream) == 1)
|
||||
|
||||
Reference in New Issue
Block a user