aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/ftp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/ftp.c b/lib/ftp.c
index 568a9b917..1d7b9c284 100644
--- a/lib/ftp.c
+++ b/lib/ftp.c
@@ -860,7 +860,8 @@ CURLcode _ftp(struct connectdata *conn)
* previous lookup.
*/
he = conn->hp;
- connectport = data->port; /* we connect to the proxy's port */
+ connectport =
+ (unsigned short)data->port; /* we connect to the proxy's port */
}
else {
/* normal, direct, ftp connection */