1 --- kdelibs-3.5.10/kioslave/ftp/ftp.cc~ 2008-08-19 20:18:12.000000000 +0200
2 +++ kdelibs-3.5.10/kioslave/ftp/ftp.cc 2009-07-04 00:25:31.109366056 +0200
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)