From f6e750471a512f89c0208b7e2705df3065e593ca Mon Sep 17 00:00:00 2001 From: Mark Emmer Date: Sun, 26 Oct 2014 13:39:51 -0600 Subject: [PATCH] SCP: Fix SEND :line when after=nn and delay=nn not specified For a command like: SEND MUX:0 "abc" in which a device is specified but there are no after=nn and delay=nn parameters, the code neglected to update cptr, resulting in an illegal argument error condition. --- scp.c | 1 + 1 file changed, 1 insertion(+) diff --git a/scp.c b/scp.c index e46a093d..f612e377 100644 --- a/scp.c +++ b/scp.c @@ -3262,6 +3262,7 @@ if (isalpha(gbuf[0]) && (strchr (gbuf, ':'))) { r = tmxr_locate_line_send (gbuf, &snd); if (r != SCPE_OK) return r; + cptr = tptr; tptr = get_glyph (tptr, gbuf, ','); } else