Skip to content
Snippets Groups Projects
Commit fc4ee1b9 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Allow C escape sequences in EXEC: @-code argument, to allow param passing

e.g. separate module name from command-line params with \x20 and separate
params from eachother with \x20.
parent 795e75f1
Branches
No related tags found
No related merge requests found
Pipeline #8881 passed
......@@ -1587,7 +1587,9 @@ const char* sbbs_t::atcode(const char* sp, char* str, size_t maxlen, int* pmode,
}
if (!strncmp(sp, "EXEC:", 5)) {
exec_bin(sp + 5, &main_csi);
SAFECOPY(tmp, sp + 5);
c_unescape_str(tmp);
exec_bin(tmp, &main_csi);
return nulstr;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment