#include <cerrno>
#include <csignal>
+#include <cstdio> // snprintf
#include "configproto.h"
#include "blowfish.h"
+#ifndef ENODATA
+// FreeBSD 4.* - suxx
+#define ENODATA -1
+#endif
+
enum CONF_STATE
{
confHdr,
{
char s[255];
answerList.clear();
-sprintf(s, "<Error value=\"%s\"/>", text);
+snprintf(s, 255, "<Error value=\"%s\"/>", text);
answerList.push_back(s);
}
//-----------------------------------------------------------------------------