TIMER: Tolerate trailing spaces on SET THROTTLE arguments
This commit is contained in:
parent
3671ef1d87
commit
ded2b20fe0
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue