diff -r 8a14024f954a -r cfe32394fcd5 stif/TestScripter/src/TestScripter.cpp --- a/stif/TestScripter/src/TestScripter.cpp Mon Mar 15 12:46:13 2010 +0200 +++ b/stif/TestScripter/src/TestScripter.cpp Thu Apr 01 00:00:49 2010 +0300 @@ -2361,14 +2361,17 @@ iTestScripter->TestModuleIf().Printf( KPrintPriLow, _L("Runner"), _L("%S"), &aKeyword ); - TName buf; + RBuf buf; + buf.CreateL(1024); + CleanupClosePushL(buf); + TPtrC tmp; while( aItem->GetNextString( tmp ) == KErrNone ) { if( buf.Length() + tmp.Length() >= buf.MaxLength() ) { - break; + buf.ReAllocL(buf.MaxLength() + tmp.Length() * 10); } buf.Append( tmp ); buf.Append( _L(" ") ); @@ -2378,6 +2381,7 @@ _L("Test"), _L("%S"), &buf); RDebug::Print( _L("Print : Test : %S"), &buf ); + CleanupStack::PopAndDestroy(&buf); } break; case TTestKeywords::EAllowNextResult: