missing crlf

This commit is contained in:
Andrew Pamment 2017-04-05 09:25:51 +10:00
parent 87133aed50
commit 4ff178e9f2

View File

@ -352,7 +352,7 @@ void handle_EPSV(struct ftpserver *cfg, struct ftpclient *client) {
socklen_t file_sock_len = sizeof(struct sockaddr); socklen_t file_sock_len = sizeof(struct sockaddr);
getsockname(client->data_srv_socket, (struct sockaddr*) &file_addr, &file_sock_len); getsockname(client->data_srv_socket, (struct sockaddr*) &file_addr, &file_sock_len);
char buffer[256]; char buffer[256];
sprintf(buffer, "229 Entering Extended Passive Mode (|||%d|)", port); sprintf(buffer, "229 Entering Extended Passive Mode (|||%d|)\r\n", port);
send_msg(client, buffer); send_msg(client, buffer);
} }