diff --git a/libisofs/system_area.c b/libisofs/system_area.c index b36009b..8030048 100644 --- a/libisofs/system_area.c +++ b/libisofs/system_area.c @@ -184,7 +184,7 @@ int iso_compute_append_partitions(Ecma119Image *t, int flag) } t->appended_part_size[i] = size; pos += add_pos + size; - t->total_size += (add_pos + size) * 2048; + t->total_size += (((off_t) add_pos) + size) * 2048; if (flag & 1) t->curblock = pos; }