]> git.stg.codes - stg.git/blobdiff - projects/stargazer/plugins/configuration/sgconfig/rsconf.cpp
Readme for sgauth removed, CHANGES and TODO made empty
[stg.git] / projects / stargazer / plugins / configuration / sgconfig / rsconf.cpp
index 8d2ce15377f14c958b7dfa665a87ff82da62c56b..a3957f361f6123c3cf53ca4a5739be4dfb17aea7 100644 (file)
@@ -28,6 +28,7 @@
 
 #include <cerrno>
 #include <csignal>
 
 #include <cerrno>
 #include <csignal>
+#include <cstdio> // snprintf
 
 #include "configproto.h"
 #include "blowfish.h"
 
 #include "configproto.h"
 #include "blowfish.h"
@@ -545,7 +546,7 @@ void CONFIGPROTO::SendError(const char * text)
 {
 char s[255];
 answerList.clear();
 {
 char s[255];
 answerList.clear();
-sprintf(s, "<Error value=\"%s\"/>", text);
+snprintf(s, 255, "<Error value=\"%s\"/>", text);
 answerList.push_back(s);
 }
 //-----------------------------------------------------------------------------
 answerList.push_back(s);
 }
 //-----------------------------------------------------------------------------