From 4a36fa395cfe819454e90c835005a7c380ee57d1 Mon Sep 17 00:00:00 2001 From: Denis Molony Date: Sun, 13 Dec 2015 21:16:07 +1100 Subject: [PATCH] don't try to interpret the boot sector --- resources/buildNumber | 4 ++-- src/com/bytezone/diskbrowser/applefile/BootSector.java | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/resources/buildNumber b/resources/buildNumber index f6eb46e..5cec668 100755 --- a/resources/buildNumber +++ b/resources/buildNumber @@ -1,3 +1,3 @@ #Build Number for ANT. Do not edit! -#Sun Dec 13 21:01:46 AEDT 2015 -build.number=631 +#Sun Dec 13 21:15:20 AEDT 2015 +build.number=632 diff --git a/src/com/bytezone/diskbrowser/applefile/BootSector.java b/src/com/bytezone/diskbrowser/applefile/BootSector.java index af71eff..15f9c67 100644 --- a/src/com/bytezone/diskbrowser/applefile/BootSector.java +++ b/src/com/bytezone/diskbrowser/applefile/BootSector.java @@ -23,8 +23,8 @@ public class BootSector extends AbstractSector { // The first byte in the buffer is the number of sectors to read in (minus 1) int sectors = buffer[0] & 0xFF; - // System.out.printf ("Sectors to read : %d%n", (sectors + 1)); - if (sectors > 0 && sectors < 10) // probably not what I think it is + System.out.printf ("Sectors to read : %d%n", (sectors + 1)); + if (false) // probably not what I think it is { int bufferSize = buffer.length * (sectors + 1); byte[] newBuffer = new byte[bufferSize];