[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdelibs/kioslave/ftp
From:       David Faure <faure () kde ! org>
Date:       2004-01-18 20:04:39
Message-ID: 20040118200439.C80F291D4 () office ! kde ! org
[Download RAW message or body]

CVS commit by faure: 

Hopefully fix resuming for >2GB files.
CCMAIL: "Dr. Jürgen Pfennig" <mail@j-pfennig.de>


  M +5 -5      ftp.cc   1.194


--- kdelibs/kioslave/ftp/ftp.cc  #1.193:1.194
@@ -1058,5 +1058,5 @@ int Ftp::ftpAcceptConnect()
 
 bool Ftp::ftpOpenCommand( const char *_command, const QString & _path, char _mode,
-                          int errorcode, unsigned long _offset )
+                          int errorcode, KIO::fileoffset_t _offset )
 {
   QCString buf = "type ";
@@ -2011,9 +2011,9 @@ void Ftp::get( const KURL & url )
   }
 
-  unsigned long offset = 0;
+  KIO::fileoffset_t offset = 0;
   QString resumeOffset = metaData(QString::fromLatin1("resume"));
   if ( !resumeOffset.isEmpty() )
   {
-      offset = resumeOffset.toInt();
+      offset = resumeOffset.toLongLong();
       kdDebug(7102) << "Ftp::get got offset from medata : " << offset << endl;
   }
@@ -2250,10 +2250,10 @@ void Ftp::put( const KURL& dest_url, int
     dest = dest_orig;
 
-  unsigned long offset = 0;
+  KIO::fileoffset_t offset = 0;
 
   // set the mode according to offset
   if ( resume ) {
     offset = m_size;
-    kdDebug(7102) << "Offset = " << (unsigned int) offset << "d" << endl;
+    kdDebug(7102) << "Offset = " << offset << "d" << endl;
   }
 


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic