webengine/osswebengine/cache/src/HttpCachePostponeWriteUtilities.cpp
changeset 25 0ed94ceaa377
parent 11 c8a366e56285
child 48 79859ed3eea9
--- a/webengine/osswebengine/cache/src/HttpCachePostponeWriteUtilities.cpp	Tue Nov 24 09:02:20 2009 +0200
+++ b/webengine/osswebengine/cache/src/HttpCachePostponeWriteUtilities.cpp	Thu Dec 17 09:20:16 2009 +0200
@@ -99,8 +99,8 @@
     HttpCacheUtil::WriteFormatLog(0, _L("CACHEPOSTPONE: CHttpCacheEntryAsyncWriteHelper::WriteNextBodyBlock called on object %08x for block %d"), this, iBodyPart );
 #endif
 
-    TPtrC8 bufferPtr( iSource->BodyData().GetSegmentData(iBodyPart) );
-    iSource->BodyFile().Write(bufferPtr, iStatus);
+    iCurrentBuf.Set( iSource->BodyData().GetSegmentData(iBodyPart) );    
+    iSource->BodyFile().Write(iCurrentBuf, iStatus);
     }
 
 // -----------------------------------------------------------------------------