Iterate through sectors (not tracks) in getFiles().

This commit is contained in:
John B. Matthews 2008-06-04 15:26:23 +00:00
parent 93cc49e546
commit 31875ea60c
1 changed files with 1 additions and 1 deletions

View File

@ -139,7 +139,7 @@ public class DosFormatDisk extends FormattedDisk {
byte[] vtoc = readVtoc();
int track = AppleUtil.getUnsignedByte(vtoc[1]);
int sector = AppleUtil.getUnsignedByte(vtoc[2]);
while (track != 0) { // iterate through all catalog sectors
while (sector != 0) { // bug fix: iterate through all catalog _sectors_
byte[] catalogSector = readSector(track, sector);
int offset = 0x0b;
while (offset < 0xff) { // iterate through all entries