From kde-commits Sat Jan 31 22:40:55 2009 From: Andreas Hartmetz Date: Sat, 31 Jan 2009 22:40:55 +0000 To: kde-commits Subject: KDE/kdelibs/kioslave/http Message-Id: <1233441655.719768.4316.nullmailer () svn ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=123344166411584 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;