Skip to content
Snippets Groups Projects
Commit 352e5931 authored by rswindell's avatar rswindell
Browse files

Don't overwrite STR (aka bbs.command_str) in EXEC_BIN unless an actual argument

was supplied. This solves the problem of "exec_bin str_cmds" not working with
str_cmds.js, since bbs.command_str was being erased if the %s argument wasn't
included in the command-line.
parent 14031bdf
No related branches found
No related tags found
No related merge requests found
......@@ -671,7 +671,8 @@ long sbbs_t::exec_bin(const char *cmdline, csi_t *csi)
p++; /* skip space */
SKIP_CHAR(p,' '); /* skip more spaces */
}
strcpy(main_csi.str, p);
if(*p)
strcpy(main_csi.str, p);
#ifdef JAVASCRIPT
if((p=getfext(mod))!=NULL && stricmp(p,".js")==0)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment