mirror of
https://github.com/simh/simh.git
synced 2026-01-25 19:56:25 +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:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user