From ded2b20fe0a5d3887d49af0cfc57f44fa35537b8 Mon Sep 17 00:00:00 2001 From: Mark Pizzolato Date: Fri, 18 May 2018 08:15:03 -0700 Subject: [PATCH] TIMER: Tolerate trailing spaces on SET THROTTLE arguments --- sim_timer.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sim_timer.c b/sim_timer.c index ae8d77a5..d83ea210 100644 --- a/sim_timer.c +++ b/sim_timer.c @@ -1636,6 +1636,8 @@ else { c = (char)toupper (*tptr++); if (c == '/') { val2 = strtotv (tptr, &tptr, 10); + while (sim_isspace (*tptr)) + ++tptr; if ((*tptr != '\0') || (val == 0)) return sim_messagef (SCPE_ARG, "Invalid throttle delay specifier: %s\n", cptr); }