Ticket #2946: kdelibs-3.5.10-gcc44-1.patch

File kdelibs-3.5.10-gcc44-1.patch, 877 bytes (added by thomas, 17 years ago)
  • kdelibs-3.5.10/kioslave/ftp/ftp.cc

    diff -up kdelibs-3.5.10/kioslave/ftp/ftp.cc.orig
    kdelibs-3.5.10/kioslave/ftp/ftp.cc
    old new int Ftp::ftpOpenPASVDataConnection()  
    876876  // The usual answer is '227 Entering Passive Mode. (160,39,200,55,6,245)'
    877877  // but anonftpd gives '227 =160,39,200,55,6,245'
    878878  int i[6];
    879   char *start = strchr(ftpResponse(3), '(');
     879  const char *start = strchr(ftpResponse(3), '(');
    880880  if ( !start )
    881881    start = strchr(ftpResponse(3), '=');
    882882  if ( !start ||
    … … int Ftp::ftpOpenEPSVDataConnection()  
    931931return ERR_INTERNAL;
    932932}
    933933
    934   char *start = strchr(ftpResponse(3), '|');
     934  const char *start = strchr(ftpResponse(3), '|');
    935935  if ( !start || sscanf(start, "|||%d|", &portnum) != 1)
    936936  return ERR_INTERNAL;
    937937