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:
Robert Greene 2003-02-08 16:43:08 +00:00
parent 0ca49a89f2
commit 216b34549d
1 changed files with 1 additions and 1 deletions

View File

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