TIMER: Tolerate trailing spaces on SET THROTTLE arguments

This commit is contained in:
Mark Pizzolato 2018-05-18 08:15:03 -07:00
parent 3671ef1d87
commit ded2b20fe0

View file

@ -1636,6 +1636,8 @@ else {
c = (char)toupper (*tptr++); c = (char)toupper (*tptr++);
if (c == '/') { if (c == '/') {
val2 = strtotv (tptr, &tptr, 10); val2 = strtotv (tptr, &tptr, 10);
while (sim_isspace (*tptr))
++tptr;
if ((*tptr != '\0') || (val == 0)) if ((*tptr != '\0') || (val == 0))
return sim_messagef (SCPE_ARG, "Invalid throttle delay specifier: %s\n", cptr); return sim_messagef (SCPE_ARG, "Invalid throttle delay specifier: %s\n", cptr);
} }