1 Upstream URL: https://bugs.kde.org/show_bug.cgi?id=193242
2 Signed off by: Elan Ruusamäe <glen@delfi.ee>
3 --- kdelibs-3.5.10/kioslave/ftp/ftp.cc~ 2009-05-19 14:57:21.000000000 +0300
4 +++ kdelibs-3.5.10/kioslave/ftp/ftp.cc 2009-05-19 14:57:24.016475767 +0300
6 // The usual answer is '227 Entering Passive Mode. (160,39,200,55,6,245)'
7 // but anonftpd gives '227 =160,39,200,55,6,245'
9 - char *start = strchr(ftpResponse(3), '(');
10 + const char *start = strchr(ftpResponse(3), '(');
16 - char *start = strchr(ftpResponse(3), '|');
17 + const char *start = strchr(ftpResponse(3), '|');
18 if ( !start || sscanf(start, "|||%d|", &portnum) != 1)