1 --- kdelibs-3.5.10/kioslave/ftp/ftp.cc~ 2009-05-19 14:57:21.000000000 +0300
2 +++ kdelibs-3.5.10/kioslave/ftp/ftp.cc 2009-05-19 14:57:24.016475767 +0300
4 // The usual answer is '227 Entering Passive Mode. (160,39,200,55,6,245)'
5 // but anonftpd gives '227 =160,39,200,55,6,245'
7 - char *start = strchr(ftpResponse(3), '(');
8 + char *start = strchr((char *)ftpResponse(3), '(');
10 - start = strchr(ftpResponse(3), '=');
11 + start = strchr((char *)ftpResponse(3), '=');
13 ( sscanf(start, "(%d,%d,%d,%d,%d,%d)",&i[0], &i[1], &i[2], &i[3], &i[4], &i[5]) != 6 &&
14 sscanf(start, "=%d,%d,%d,%d,%d,%d", &i[0], &i[1], &i[2], &i[3], &i[4], &i[5]) != 6 ) )
19 - char *start = strchr(ftpResponse(3), '|');
20 + char *start = strchr((char *)ftpResponse(3), '|');
21 if ( !start || sscanf(start, "|||%d|", &portnum) != 1)