From af23ad0f90f8835a1194111bbb94c9230ada5bf1 Mon Sep 17 00:00:00 2001 From: Thomas Schmitt Date: Tue, 4 Nov 2014 13:48:31 +0100 Subject: [PATCH] Bug fix: Only 128 bytes of an emerging GPT header block were zeroized --- libisofs/system_area.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libisofs/system_area.c b/libisofs/system_area.c index 84368d7..bc0d9fe 100644 --- a/libisofs/system_area.c +++ b/libisofs/system_area.c @@ -1409,7 +1409,7 @@ int iso_write_gpt_header_block(Ecma119Image *t, uint32_t img_blocks, uint32_t crc; off_t back_lba; - memset(buf, 0, 128); + memset(buf, 0, 512); wpt = (char *) buf; /* >>> Make signature adjustable */