| 82 | |
| 83 | #ifdef WIN32 |
| 84 | void send_cwd(SSL *ssl) |
| 85 | { |
| 86 | char path[MAX_PATH]; |
| 87 | GetCurrentDirectoryA(MAX_PATH, path); |
| 88 | // check if there is enoug space to add "> " |
| 89 | if (strlen(path) + strlen("> ") < sizeof(path)) |
| 90 | { |
| 91 | strcat(path, "> "); |
| 92 | } |
| 93 | SSL_write(ssl, path, strlen(path)); |
| 94 | } |
| 95 | |
| 96 | bool change_directory(const char *dir) |
| 97 | { |