#include <list>
#include <errno.h>
+#include "stg/common.h"
+#include "stg/netunit.h"
#include "request.h"
-#include "common.h"
-#include "netunit.h"
#include "common_sg.h"
#include "sg_error_codes.h"
str = new char[strlen(c) + 1];
strncpy(str, c, strlen(c));
+str[strlen(c)] = 0;
+
msg = strchr(str, ':');
if (msg)
char charsetF[255];
strncpy(charsetF, nl_langinfo(CODESET), 255);
-char * charsetT = "koi8-r";
+char * charsetT = "koi8-ru";
size_t nconv = 1;