Upstream URL: https://bugs.kde.org/show_bug.cgi?id=193242 Signed off by: Elan Ruusamäe --- kdelibs-3.5.10/kioslave/ftp/ftp.cc~ 2009-05-19 14:57:21.000000000 +0300 +++ kdelibs-3.5.10/kioslave/ftp/ftp.cc 2009-05-19 14:57:24.016475767 +0300 @@ -876,5 +876,5 @@ // 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), '('); + const char *start = strchr(ftpResponse(3), '('); if ( !start ) @@ -931,7 +931,7 @@ return ERR_INTERNAL; } - char *start = strchr(ftpResponse(3), '|'); + const char *start = strchr(ftpResponse(3), '|'); if ( !start || sscanf(start, "|||%d|", &portnum) != 1) return ERR_INTERNAL;