--- a/mmappcomponents/mmmtpdataprovider/inc/cmmmtpdpperflog.inl Mon Mar 15 12:42:31 2010 +0200
+++ b/mmappcomponents/mmmtpdataprovider/inc/cmmmtpdpperflog.inl Wed Mar 31 22:26:09 2010 +0300
@@ -71,10 +71,13 @@
VA_LIST list;
VA_START( list, aFmt );
- TBuf<KMtpLogBufferSize> buf;
-
- buf.AppendFormatList( aFmt, list, &iOverflowHandler );
- Write( buf );
+ HBufC* buf = HBufC::New( KMtpLogBufferSize );
+ if ( buf )
+ {
+ buf->Des().AppendFormatList( aFmt, list, &iOverflowHandler );
+ Write( *buf );
+ delete buf;
+ }
}
void CMmMtpDpPerfLog::Start( const TDesC& aDescription )