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

List:       kde-commits
Subject:    KDE/kdelibs/kioslave/file
From:       Allan Sandfeld Jensen <kde () carewolf ! com>
Date:       2006-08-21 11:18:25
Message-ID: 1156159105.860314.4673.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 575345 by carewolf:

Don't send more data than we read


 M  +1 -1      file.cc  


--- trunk/KDE/kdelibs/kioslave/file/file.cc #575344:575345
@@ -434,7 +434,7 @@
         read_retry:
             int res = ::read(fd, buffer.data(), bytes);
             if (res >= 0) {
-                array = array.fromRawData(buffer.data(), bytes);
+                array = array.fromRawData(buffer.data(), res);
                 data( array );
                 array.clear();
                 continue;
[prev in list] [next in list] [prev in thread] [next in thread] 

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