From ee0aadeb371f85eca586a39432e3e311deb15e8c Mon Sep 17 00:00:00 2001 From: Mark Pizzolato Date: Sat, 12 Nov 2016 13:14:15 -0800 Subject: [PATCH] SCP: Issue error message when CONTINUE command has unused arguments --- scp.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/scp.c b/scp.c index 762a2c0b..67a144db 100644 --- a/scp.c +++ b/scp.c @@ -6316,8 +6316,12 @@ else if (flag == RU_BOOT) { /* boot */ return r; } -else if (flag != RU_CONT) /* must be cont */ - return SCPE_IERR; +else + if (flag != RU_CONT) /* must be cont */ + return SCPE_IERR; + else /* CONTINUE command */ + if (*cptr != 0) /* should be end (no arguments allowed) */ + return sim_messagef (SCPE_2MARG, "CONTINUE command takes no arguments\n"); if (sim_switches & SIM_SW_HIDE) /* Setup only for Remote Console Mode */ return SCPE_OK;