DISK: Fix off by one error in reporting RSTS file structure info

This fixes issue #1106 -- the last sector number reported was
off by one (sector past the last free sector).
This commit is contained in:
Paul Koning 2022-03-21 13:43:30 -04:00
parent eac94b4bdb
commit efb83fa831

View file

@ -1952,7 +1952,7 @@ if (uar != 0) {
} }
} }
scanDone: scanDone:
*result = (t_offset)(blocks + 1) * context->pcs; *result = ((t_offset)(blocks + 1) * context->pcs) - 1;
return SCPE_OK; return SCPE_OK;
} }
} }