double cash;
char * msg;
char * str;
-str = new char[strlen(c)];
+str = new char[strlen(c) + 1];
+
+strncpy(str, c, strlen(c));
+str[strlen(c)] = 0;
-strcpy(str, c);
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;