mirror of
https://github.com/AppleCommander/AppleCommander.git
synced 2025-08-14 08:25:44 +00:00
Fixed a minor bug in the format routine. Only the first catalog
sector could be found up to this point.
This commit is contained in:
@@ -522,7 +522,7 @@ public class DosFormatDisk extends FormattedDisk {
|
||||
// create catalog sectors
|
||||
byte[] data = new byte[SECTOR_SIZE];
|
||||
for (int sector=firstCatalogSector; sector > 0; sector--) {
|
||||
if (sector == 0) {
|
||||
if (sector > 1) {
|
||||
data[0x01] = CATALOG_TRACK;
|
||||
data[0x02] = (byte)(sector-1);
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user