--- ckcftp.c.orig 2011-10-14 13:21:35.101172017 +0200 +++ ckcftp.c 2011-10-14 13:25:11.562610514 +0200 @@ -948,7 +948,7 @@ static int csocket = -1; /* Control socket */ static int connected = 0; /* Connected to FTP server */ -static short ftp_port = 0; /* FTP port */ +static int ftp_port = 0; /* FTP port */ #ifdef FTPHOST static int hostcmd = 0; /* Has HOST command been sent */ #endif /* FTPHOST */