Removed libicu dependency for UTF-16 partition names. Version 0.8.9
release.
diff --git a/basicmbr.cc b/basicmbr.cc
index 9e754d4..f7e1f6d 100644
--- a/basicmbr.cc
+++ b/basicmbr.cc
@@ -671,7 +671,7 @@
done = 1;
} // if
// If LBA value is too large for CHS, max out CHS values....
- if ((!done) && (lba >= (numHeads * numSecspTrack * MAX_CYLINDERS))) {
+ if ((!done) && (lba >= ((uint64_t) numHeads * numSecspTrack * MAX_CYLINDERS))) {
chs[0] = 254;
chs[1] = chs[2] = 255;
done = 1;
@@ -1223,7 +1223,7 @@
// Remove primary partitions in excess of 4, starting with the later ones,
// in terms of the array location....
void BasicMBRData::TrimPrimaries(void) {
- int numToDelete, i = MAX_MBR_PARTS;
+ int numToDelete, i = MAX_MBR_PARTS - 1;
numToDelete = NumPrimaries() - 4;
while ((numToDelete > 0) && (i >= 0)) {