diff options
author | Francois Andriot <albator78@libertysurf.fr> | 2013-07-24 15:43:58 -0500 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-07-24 15:43:58 -0500 |
commit | 8c0722d933315b9da22022389c3f4e1774703acc (patch) | |
tree | 5d7a3fffa9da43a852b5e054cf183a3d8826faae /kio_ftps/ftp.cc | |
parent | 3e52b79020dd0bbd653169972f1cccaf63e0b631 (diff) | |
download | tdeio-ftps-8c0722d933315b9da22022389c3f4e1774703acc.tar.gz tdeio-ftps-8c0722d933315b9da22022389c3f4e1774703acc.zip |
Fix FTBFS
Diffstat (limited to 'kio_ftps/ftp.cc')
-rw-r--r-- | kio_ftps/ftp.cc | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/kio_ftps/ftp.cc b/kio_ftps/ftp.cc index d1a0d65..2dad336 100644 --- a/kio_ftps/ftp.cc +++ b/kio_ftps/ftp.cc @@ -20,6 +20,7 @@ Recommended reading explaining FTP details and quirks: http://cr.yp.to/ftp.html (by D.J. Bernstein) */ +// fix type conversion error josswern 23.02.2011 #define KIO_FTP_PRIVATE_INCLUDE @@ -913,7 +914,9 @@ int Ftp::ftpOpenPASVDataConnection() // The usual answer is '227 Entering Passive Mode. (160,39,200,55,6,245)' // but anonftpd gives '227 =160,39,200,55,6,245' int i[6]; - char *start = strchr(ftpResponse(3), '('); + // fix type conversion error josswern 23.02.2011 + const char *start; // statt char *start 23.02.11 + start = strchr(ftpResponse(3), '('); if ( !start ) start = strchr(ftpResponse(3), '='); if ( !start || @@ -965,7 +968,8 @@ int Ftp::ftpOpenEPSVDataConnection() return ERR_INTERNAL; } - char *start = strchr(ftpResponse(3), '|'); + // fix type conversion error josswern 23.02.2011 + const char *start = strchr(ftpResponse(3), '|'); // statt char *start = strchr(ftpResponse(3), '|'); josswern if ( !start || sscanf(start, "|||%d|", &portnum) != 1) return ERR_INTERNAL; |