X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/105771be792a6c3c909b8780540004f3c27238b8..8c931ef33a414e473b19e773b445f4d30a0bfe2b:/projects/sgconf/main.cpp?ds=inline diff --git a/projects/sgconf/main.cpp b/projects/sgconf/main.cpp index 5e52d37d..ce8af73f 100644 --- a/projects/sgconf/main.cpp +++ b/projects/sgconf/main.cpp @@ -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;