Fix for ftp_send_type - was missing type param

Author: mterzo
2dbff19b9d
This commit is contained in:
tosiara
2015-02-04 12:17:38 +02:00
parent 5c6f4be9e6
commit cb6a300882

View File

@@ -789,7 +789,7 @@ int ftp_send_type(ftp_context_pointer ctxt, char type)
toupper(type);
/* Assure transfer will be in "image" mode. */
snprintf(buf, sizeof(buf), "TYPE I\r\n");
snprintf(buf, sizeof(buf), "TYPE %c\r\n", utype);
len = strlen(buf);
res = send(ctxt->control_file_desc, buf, len, 0);