From 37f6c10007a0abb33f49752aa6ec9ea7bb4717ab Mon Sep 17 00:00:00 2001 From: rswindell <> Date: Fri, 27 Feb 2009 06:16:10 +0000 Subject: [PATCH] Use SAFECOPY() instead of sprintf() with magic number. --- src/sbbs3/atcodes.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sbbs3/atcodes.cpp b/src/sbbs3/atcodes.cpp index 5c237a9725..41c28cbdbb 100644 --- a/src/sbbs3/atcodes.cpp +++ b/src/sbbs3/atcodes.cpp @@ -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); -- GitLab