mirror of
https://github.com/open-simh/simh.git
synced 2026-04-19 17:23:14 +00:00
TIMER: Tolerate trailing spaces on SET THROTTLE arguments
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user