diff -r a03f92240627 -r 33016869e0dd stif/TestScripter/src/TestScripter.cpp --- a/stif/TestScripter/src/TestScripter.cpp Tue Feb 02 01:57:15 2010 +0200 +++ b/stif/TestScripter/src/TestScripter.cpp Fri Apr 16 16:37:27 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: