Commit 37f6c100 authored by rswindell's avatar rswindell
Browse files

Use SAFECOPY() instead of sprintf() with magic number.

parent 2818e2ae
......@@ -57,7 +57,7 @@ int sbbs_t::show_atcode(const char *instr)
bool padded_right=false;
const char *cp;
sprintf(str,"%.80s",instr);
SAFECOPY(str,instr);
tp=strchr(str+1,'@');
if(!tp) /* no terminating @ */
return(0);
......
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