stif/TestScripter/src/TestScripter.cpp
branchRCL_3
changeset 8 cfe32394fcd5
parent 0 a03f92240627
child 18 3406c99bc375
--- 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: