mirror of
https://github.com/open-simh/simh.git
synced 2026-01-13 23:37:13 +00:00
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:
parent
eac94b4bdb
commit
efb83fa831
@ -1952,7 +1952,7 @@ if (uar != 0) {
|
||||
}
|
||||
}
|
||||
scanDone:
|
||||
*result = (t_offset)(blocks + 1) * context->pcs;
|
||||
*result = ((t_offset)(blocks + 1) * context->pcs) - 1;
|
||||
return SCPE_OK;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user