Fixed setSectorsUsed to set a word (two bytes) instead of a byte.

This commit is contained in:
Robert Greene 2003-03-01 16:03:20 +00:00
parent ae1a101db2
commit ec47243efe
1 changed files with 1 additions and 1 deletions

View File

@ -205,7 +205,7 @@ public class DosFileEntry implements FileEntry {
*/
public void setSectorsUsed(int sectorsUsed) {
byte[] data = readFileEntry();
data[0x21] = (byte) sectorsUsed;
AppleUtil.setWordValue(data, 0x21, sectorsUsed);
writeFileEntry(data);
}