From 35cfb756be9538d1010b2e9611acec97dbf85305 Mon Sep 17 00:00:00 2001 From: Thomas Schmitt Date: Wed, 15 Jun 2011 17:09:48 +0200 Subject: [PATCH] Bug fix: Padding as of iso_write_opts_set_tail_blocks() was added only after cylinder alignment as of iso_write_opts_set_system_area() and thus spoiled this alignment. --- 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 0be06c5..0f57081 100644 --- a/libisofs/system_area.c +++ b/libisofs/system_area.c @@ -856,7 +856,7 @@ int iso_align_isohybrid(Ecma119Image *t, int flag) {ret = ISO_SUCCESS; goto ex;} always_align = (t->system_area_options >> 8) & 3; - img_blocks = t->curblock; + img_blocks = t->curblock + t->tail_blocks; imgsize = ((off_t) img_blocks) * (off_t) 2048; if (((t->system_area_options & 3) || always_align) && (off_t) (t->partition_heads_per_cyl * t->partition_secs_per_head