mirror of
https://github.com/simh/simh.git
synced 2026-04-27 04:26:41 +00:00
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:
1
scp.c
1
scp.c
@@ -3262,6 +3262,7 @@ if (isalpha(gbuf[0]) && (strchr (gbuf, ':'))) {
|
|||||||
r = tmxr_locate_line_send (gbuf, &snd);
|
r = tmxr_locate_line_send (gbuf, &snd);
|
||||||
if (r != SCPE_OK)
|
if (r != SCPE_OK)
|
||||||
return r;
|
return r;
|
||||||
|
cptr = tptr;
|
||||||
tptr = get_glyph (tptr, gbuf, ',');
|
tptr = get_glyph (tptr, gbuf, ',');
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user