X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/0bd1fc824f16d5eca4db5c3901e8c20ade408786..5fac70d2a11be1f48ba3f2005a8df18b4db6b620:/projects/sgconf/sginfo.cpp

diff --git a/projects/sgconf/sginfo.cpp b/projects/sgconf/sginfo.cpp
index c5ab3eaf..aa247dfb 100644
--- a/projects/sgconf/sginfo.cpp
+++ b/projects/sgconf/sginfo.cpp
@@ -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;