From 567d3ddafb4f8bb376edfcaa761bfbc7d422352e Mon Sep 17 00:00:00 2001 From: Thomas Schmitt Date: Sat, 17 Aug 2013 12:49:01 +0200 Subject: [PATCH] Fixed the rollover protection for checksum indice. --- libisofs/filesrc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libisofs/filesrc.c b/libisofs/filesrc.c index 654054a..1704e81 100644 --- a/libisofs/filesrc.c +++ b/libisofs/filesrc.c @@ -158,7 +158,7 @@ int iso_file_src_create(Ecma119Image *img, IsoFile *file, IsoFileSrc **src) fsrc->checksum_index = img->checksum_idx_counter; } else { fsrc->checksum_index= 0; - img->checksum_idx_counter= 0x7fffffff; /* keep from rolling over */ + img->checksum_idx_counter= 0x7ffffffe; /* keep from rolling over */ } cret = iso_file_set_isofscx(file, (*src)->checksum_index, 0); if (cret < 0)