1
0
mirror of https://github.com/simh/simh.git synced 2026-01-15 08:02:40 +00:00

SCP: Fix source content address while issuing error message

This commit is contained in:
Mark Pizzolato 2023-09-19 06:25:59 -10:00
parent 926721d7c9
commit 40aa90f732

4
scp.c
View File

@ -10144,12 +10144,14 @@ for (gptr = gbuf, reason = SCPE_OK;
else {
highr = lowr;
if (*tptr == '[') {
const char *stptr = tptr;
if (lowr->depth <= 1)
return sim_messagef (SCPE_ARG, "Invalid register depth specification: %s\n", tptr);
tptr = get_range (NULL, tptr + 1, &low, &high,
10, lowr->depth - 1, ']');
if (tptr == NULL)
return sim_messagef (SCPE_ARG, "Invalid register depth specification: %s\n", tptr);
return sim_messagef (SCPE_ARG, "Invalid register depth specification: %s\n", stptr);
}
}
if (*tptr && (*tptr++ != ','))