1
0
mirror of https://github.com/simh/simh.git synced 2026-01-18 17:08:16 +00:00

SCP: Fix REGister URDATA sanity validation logic to reference proper size

This commit is contained in:
Mark Pizzolato 2022-09-25 14:16:25 -10:00
parent 75745b7b52
commit 61c66661d7

2
scp.c
View File

@ -16383,7 +16383,7 @@ for (i = 0; (dptr = devices[i]) != NULL; i++) {
Bad = TRUE;
Mprintf (f, "\tthe %u depth of the UNIT array exceeds the number of units on the %s device which is %u\n", rptr->depth, dptr->name, udptr->numunits);
}
if (rptr->obj_size > sizeof (t_value)) {
if (rptr->size > sizeof (t_value)) {
Bad = TRUE;
Mprintf (f, "\t%u is larger than the size of the t_value type (%u)\n", (uint32)rptr->obj_size, (uint32)sizeof (t_value));
}