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

List:       kde-commits
Subject:    KDE/kdelibs/kioslave/http
From:       Andreas Hartmetz <ahartmetz () gmail ! com>
Date:       2009-01-31 22:40:55
Message-ID: 1233441655.719768.4316.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 919416 by ahartmetz:

Add comment as suggested by Maksim

 M  +2 -0      http.cpp  


--- trunk/KDE/kdelibs/kioslave/http/http.cpp #919415:919416
@@ -1918,6 +1918,8 @@
         size_t bufferFill = readBuffered(mybuf, step);
 
         for (int i = 0; i < bufferFill ; i++, pos++) {
+            // we copy the data from mybuf to buf immediately and look for the newlines in buf.
+            // that way we don't miss newlines split over several invocations of this method.
             char c = mybuf[i];
             buf[pos] = c;
             
[prev in list] [next in list] [prev in thread] [next in thread] 

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