From d63503766175e201b0b7115097dfe1da58f4a5f4 Mon Sep 17 00:00:00 2001 From: Thomas Schmitt Date: Thu, 21 Mar 2024 21:34:11 +0100 Subject: [PATCH] Made Xorriso_set_system_area() ready for long block adresses --- xorriso/write_run.c | 10 +++++----- xorriso/xorriso_timestamp.h | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/xorriso/write_run.c b/xorriso/write_run.c index 308cd086..504184fa 100644 --- a/xorriso/write_run.c +++ b/xorriso/write_run.c @@ -401,9 +401,9 @@ int Xorriso_set_system_area(struct XorrisO *xorriso, struct isoburn_imgen_opts *sopts, int flag) { - int ret, options, system_area_options, start_lba, image_blocks; + int ret, options, system_area_options; int sa_loaded, read_count, i, read_sum= 0; - off_t iso_lba= -1; + off_t iso_lba= -1, start_lba, image_blocks; char volid[33]; FILE *fp= NULL; char *buf= NULL, *bufpt= NULL, *intvl; @@ -471,10 +471,10 @@ int Xorriso_set_system_area(struct XorrisO *xorriso, (((unsigned int) ub[461]) << 24)); iso_lba= -1; - ret= isoburn_disc_get_msc1(in_drive, &start_lba); + ret= isoburn_disc_get_msc1_v2(in_drive, &start_lba); if(ret > 0) { - ret= isoburn_read_iso_head(in_drive, start_lba, &image_blocks, - volid, 1); + ret= isoburn_read_iso_head_v2(in_drive, start_lba, &image_blocks, + volid, 1); if(ret > 0) iso_lba= start_lba + image_blocks; } diff --git a/xorriso/xorriso_timestamp.h b/xorriso/xorriso_timestamp.h index 7a5cf0e3..9ecbad4c 100644 --- a/xorriso/xorriso_timestamp.h +++ b/xorriso/xorriso_timestamp.h @@ -1 +1 @@ -#define Xorriso_timestamP "2024.03.21.193959" +#define Xorriso_timestamP "2024.03.21.203354"