]> git.stg.codes - stg.git/blobdiff - projects/sgconf/main.cpp
Empty lines removed from the end of the main.cpp from stargazer project
[stg.git] / projects / sgconf / main.cpp
index 5e52d37d15c3418167cec1f04e59f7893f3821df..ce8af73f7cbae348e8b9411598b1069b1e7324b1 100644 (file)
@@ -184,6 +184,8 @@ char * str;
 str = new char[strlen(c) + 1];
 
 strncpy(str, c, strlen(c));
+str[strlen(c)] = 0;
+
 msg = strchr(str, ':');
 
 if (msg)
@@ -946,7 +948,7 @@ while (1)
             break;
 
         case 'A': //nAme
-            ParseAnyString(optarg, &str, "koi8-r");
+            ParseAnyString(optarg, &str, "koi8-ru");
             req.name = str;
             break;