Fixed a comparation report text problem with files of 4 GiB or larger. Thanks Eliska Svobodova.
This commit is contained in:
@ -62,6 +62,7 @@ int Xorriso_compare_2_contents(struct XorrisO *xorriso, char *common_adr,
|
||||
char disk_md5[16], iso_md5[16];
|
||||
void *ctx= NULL;
|
||||
int buf_size= 32 * 1024;
|
||||
double dcount;
|
||||
|
||||
Xorriso_alloc_meM(buf1, char, buf_size);
|
||||
Xorriso_alloc_meM(buf2, char, buf_size);
|
||||
@ -238,10 +239,13 @@ cannot_address:;
|
||||
offset_text[0]= 0;
|
||||
if(offset>0)
|
||||
sprintf(offset_text, "%.f+", (double) offset);
|
||||
if(r1count > r2count)
|
||||
dcount= diffcount + (r1count - r2count);
|
||||
else
|
||||
dcount= diffcount + (r2count - r1count);
|
||||
sprintf(respt, "%s %s : differs by at least %.f bytes. First at %s%.f\n",
|
||||
common_adr, (flag&1 ? "CONTENT": "content"),
|
||||
(double) (diffcount + abs(r1count-r2count)),
|
||||
offset_text, (double) first_diff);
|
||||
dcount, offset_text, (double) first_diff);
|
||||
if(!(flag&(1<<31)))
|
||||
Xorriso_result(xorriso,0);
|
||||
(*result)|= (1<<15);
|
||||
|
@ -1 +1 @@
|
||||
#define Xorriso_timestamP "2019.07.24.141555"
|
||||
#define Xorriso_timestamP "2019.08.12.152719"
|
||||
|
Reference in New Issue
Block a user