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)
break;
case 'A': //nAme
- ParseAnyString(optarg, &str, "koi8-r");
+ ParseAnyString(optarg, &str, "koi8-ru");
req.name = str;
break;