Commit 15128c0a authored by rswindell's avatar rswindell
Browse files

The parsing of format modifiers could truncate/corrupt @-code arguments

(e.g. "@code:BIG-RED@", the argument would get chopped to just "BIG")
so don't support format modifiers when a ':' is present in the @-code.
parent 21b625f0
......@@ -75,7 +75,9 @@ int sbbs_t::show_atcode(const char *instr)
sp=(str+1);
disp_len=len;
if((p=strstr(sp,"-L"))!=NULL)
if(strchr(sp, ':') != NULL)
p = NULL;
else if((p=strstr(sp,"-L"))!=NULL)
padded_left=true;
else if((p=strstr(sp,"-R"))!=NULL)
padded_right=true;
......
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