| 181 | } |
| 182 | |
| 183 | char* ProfileObject::MkPath(const char* first, const char* second) const |
| 184 | { |
| 185 | size_t lgFirst = strlen(first); |
| 186 | size_t lgSecond = strlen(second); |
| 187 | |
| 188 | if (lgFirst == 0) return SU::strdup(second); |
| 189 | if (lgSecond == 0) return SU::strdup(first); |
| 190 | |
| 191 | char* ret = new char[lgFirst + lgSecond + strlen("/") + 1]; |
| 192 | strcpy(ret, first); |
| 193 | strcat(ret, "/"); |
| 194 | strcat(ret, second); |
| 195 | return ret; |
| 196 | |
| 197 | } |
| 198 | |
| 199 | ProfileObject* ProfileObject::AddChild(const char* path, const char* name, FTPProfile* profile) { |
| 200 |
nothing calls this directly
no outgoing calls
no test coverage detected