X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/7c36dd290e65ef4ad773543ce2641e1c83c28600..e507bc9f35fcf9ce0ea09f03b0187cab73519b07:/projects/stargazer/plugins/configuration/sgconfig/rsconf.cpp?ds=sidebyside diff --git a/projects/stargazer/plugins/configuration/sgconfig/rsconf.cpp b/projects/stargazer/plugins/configuration/sgconfig/rsconf.cpp index 8d2ce153..a3957f36 100644 --- a/projects/stargazer/plugins/configuration/sgconfig/rsconf.cpp +++ b/projects/stargazer/plugins/configuration/sgconfig/rsconf.cpp @@ -28,6 +28,7 @@ #include #include +#include // snprintf #include "configproto.h" #include "blowfish.h" @@ -545,7 +546,7 @@ void CONFIGPROTO::SendError(const char * text) { char s[255]; answerList.clear(); -sprintf(s, "", text); +snprintf(s, 255, "", text); answerList.push_back(s); } //-----------------------------------------------------------------------------