SCP: Fix SEND <dev>: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.
This commit is contained in:
parent
b4fb149b8d
commit
f6e750471a
1 changed files with 1 additions and 0 deletions
1
scp.c
1
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
|
||||
|
|
Loading…
Add table
Reference in a new issue