From 3ed8f0b9743a64889b89e3929835fd17535a37c2 Mon Sep 17 00:00:00 2001 From: Rob Greene Date: Thu, 16 Nov 2017 22:08:46 -0600 Subject: [PATCH] Fixes #10. --- .../applecommander/storage/os/prodos/ProdosFormatDisk.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/webcodepro/applecommander/storage/os/prodos/ProdosFormatDisk.java b/src/main/java/com/webcodepro/applecommander/storage/os/prodos/ProdosFormatDisk.java index d210e3f..aef90a5 100644 --- a/src/main/java/com/webcodepro/applecommander/storage/os/prodos/ProdosFormatDisk.java +++ b/src/main/java/com/webcodepro/applecommander/storage/os/prodos/ProdosFormatDisk.java @@ -1052,7 +1052,7 @@ public class ProdosFormatDisk extends FormattedDisk { int blocksOnDisk = getBitmapLength(); while (block < blocksOnDisk) { if (isBlockFree(volumeBitmap,block)) { - if ((block+1) * BLOCK_SIZE < getPhysicalSize()) { + if ((block+1) * BLOCK_SIZE <= getPhysicalSize()) { return block; } throw new ProdosDiskSizeDoesNotMatchException(