SCP: Assure that action commands (IF/ASSERT,BREAK, ON, etc.) are trimmed
This commit is contained in:
parent
0fa5807e1d
commit
b40e586ef3
1 changed files with 1 additions and 1 deletions
2
scp.c
2
scp.c
|
@ -11100,7 +11100,6 @@ if ((ep != NULL) && (*ep != ';')) { /* if a quoted string is
|
|||
ep = ep + 1; /* skip the non-quote character */
|
||||
ep = strchr (ep, ';'); /* the next semicolon is outside the quotes if it exists */
|
||||
}
|
||||
|
||||
if (ep != NULL) { /* if a semicolon is present */
|
||||
lnt = ep - sim_brk_act[sim_do_depth]; /* cmd length */
|
||||
memcpy (buf, sim_brk_act[sim_do_depth], lnt + 1); /* copy with ; */
|
||||
|
@ -11111,6 +11110,7 @@ else {
|
|||
strlcpy (buf, sim_brk_act[sim_do_depth], size); /* copy action */
|
||||
sim_brk_clract (); /* no more */
|
||||
}
|
||||
sim_trim_endspc (buf);
|
||||
return buf;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue