]> git.stg.codes - stg.git/blobdiff - projects/sgconf/sginfo.cpp
Minor changes.
[stg.git] / projects / sgconf / sginfo.cpp
index c5ab3eaf4c8c62655793dd469dbd994e1435d258..6879cb05ef2c4559cbd14417ac357474f22cee4d 100644 (file)
@@ -37,9 +37,9 @@
 #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"
 
@@ -185,6 +185,8 @@ char * str;
 str = new char[strlen(c) + 1];
 
 strncpy(str, c, strlen(c));
+str[strlen(c)] = 0;
+
 msg = strchr(str, ':');
 
 if (msg)
@@ -327,7 +329,7 @@ setlocale(LC_ALL, "");
 char charsetF[255];
 strncpy(charsetF, nl_langinfo(CODESET), 255);
 
-char * charsetT = "koi8-r";
+char * charsetT = "koi8-ru";
 
 size_t nconv = 1;