SCP: Fix out of scope memory reference in SET ENV -P "Prompt" EnvVar=Default
This commit is contained in:
parent
7ae5015610
commit
af54a5c8fd
1 changed files with 1 additions and 2 deletions
3
scp.c
3
scp.c
|
@ -4005,12 +4005,11 @@ return SCPE_OK;
|
|||
|
||||
t_stat sim_set_environment (int32 flag, CONST char *cptr)
|
||||
{
|
||||
char varname[CBUFSIZE], prompt[CBUFSIZE];
|
||||
char varname[CBUFSIZE], prompt[CBUFSIZE], cbuf[CBUFSIZE];
|
||||
|
||||
if ((!cptr) || (*cptr == 0)) /* now eol? */
|
||||
return SCPE_2FARG;
|
||||
if (sim_switches & SWMASK ('P')) {
|
||||
char cbuf[CBUFSIZE];
|
||||
CONST char *deflt = NULL;
|
||||
|
||||
cptr = get_glyph_quoted (cptr, prompt, 0); /* get prompt */
|
||||
|
|
Loading…
Add table
Reference in a new issue