Skip to content
Snippets Groups Projects
Commit 37f6c100 authored by rswindell's avatar rswindell
Browse files

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

parent 2818e2ae
No related branches found
No related tags found
No related merge requests found
...@@ -57,7 +57,7 @@ int sbbs_t::show_atcode(const char *instr) ...@@ -57,7 +57,7 @@ int sbbs_t::show_atcode(const char *instr)
bool padded_right=false; bool padded_right=false;
const char *cp; const char *cp;
sprintf(str,"%.80s",instr); SAFECOPY(str,instr);
tp=strchr(str+1,'@'); tp=strchr(str+1,'@');
if(!tp) /* no terminating @ */ if(!tp) /* no terminating @ */
return(0); return(0);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment