Blame kdelibs-3.5.10-gcc44.patch
|
|
63a0882 |
diff -up kdelibs-3.5.10/kioslave/ftp/ftp.cc.orig kdelibs-3.5.10/kioslave/ftp/ftp.cc
|
|
|
63a0882 |
--- kdelibs-3.5.10/kioslave/ftp/ftp.cc.orig 2009-02-25 13:18:13.000000000 +0100
|
|
|
63a0882 |
+++ kdelibs-3.5.10/kioslave/ftp/ftp.cc 2009-02-25 13:34:13.000000000 +0100
|
|
|
63a0882 |
@@ -876,7 +876,7 @@ int Ftp::ftpOpenPASVDataConnection()
|
|
|
63a0882 |
// The usual answer is '227 Entering Passive Mode. (160,39,200,55,6,245)'
|
|
|
63a0882 |
// but anonftpd gives '227 =160,39,200,55,6,245'
|
|
|
63a0882 |
int i[6];
|
|
|
63a0882 |
- char *start = strchr(ftpResponse(3), '(');
|
|
|
63a0882 |
+ const char *start = strchr(ftpResponse(3), '(');
|
|
|
63a0882 |
if ( !start )
|
|
|
63a0882 |
start = strchr(ftpResponse(3), '=');
|
|
|
63a0882 |
if ( !start ||
|
|
|
63a0882 |
@@ -931,7 +931,7 @@ int Ftp::ftpOpenEPSVDataConnection()
|
|
|
63a0882 |
return ERR_INTERNAL;
|
|
|
63a0882 |
}
|
|
|
63a0882 |
|
|
|
63a0882 |
- char *start = strchr(ftpResponse(3), '|');
|
|
|
63a0882 |
+ const char *start = strchr(ftpResponse(3), '|');
|
|
|
63a0882 |
if ( !start || sscanf(start, "|||%d|", &portnum) != 1)
|
|
|
63a0882 |
return ERR_INTERNAL;
|
|
|
63a0882 |
|