1
0
mirror of https://github.com/simh/simh.git synced 2026-01-25 19:56:25 +00:00

SCP: Fix regression which disabled limit check when parsing unsigned integers

This affected unit and tmxr line checks when there was only one unit or line.
This commit is contained in:
Mark Pizzolato
2017-12-05 12:23:31 -08:00
parent 133cf727d5
commit a4a6a1d409
3 changed files with 7 additions and 2 deletions

View File

@@ -1313,7 +1313,7 @@ t_value stop_time;
if (cptr == NULL)
return SCPE_ARG;
stop_time = get_uint (cptr, 10, 0, &r);
stop_time = get_uint (cptr, 10, T_VALUE_MAX, &r);
if (r != SCPE_OK)
return r;
if (stop_time <= (t_value)sim_gtime())