Commit 0e580b53 authored by rswindell's avatar rswindell
Browse files

Sanity-check: If string passed to show_atcode() does not start with an '@',

just immediately return 0.
parent 251cb3c2
......@@ -87,6 +87,8 @@ int sbbs_t::show_atcode(const char *instr, JSObject* obj)
long pmode = 0;
const char *cp;
if(*instr != '@')
return 0;
SAFECOPY(str,instr);
tp=strchr(str+1,'@');
if(!tp) /* no terminating @ */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment