From efb83fa8317040d763df81426e414a0732491621 Mon Sep 17 00:00:00 2001 From: Paul Koning Date: Mon, 21 Mar 2022 13:43:30 -0400 Subject: [PATCH] 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). --- sim_disk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sim_disk.c b/sim_disk.c index 6b90d9e5..77993ebf 100644 --- a/sim_disk.c +++ b/sim_disk.c @@ -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; } }