This commit is contained in:
Rob Greene 2017-11-16 22:08:46 -06:00
parent a108289ca2
commit 3ed8f0b974
1 changed files with 1 additions and 1 deletions

View File

@ -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(