]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
Fix 51781: TC7.2.0: Import GEOM_usinggeom
authorkga <kga@opencascade.com>
Thu, 28 Mar 2013 05:07:05 +0000 (05:07 +0000)
committerkga <kga@opencascade.com>
Thu, 28 Mar 2013 05:07:05 +0000 (05:07 +0000)
src/GEOMImpl/GEOMImpl_IShapesOperations.cxx

index 0a386cfe1ec3981b30e33d009ec340b6950f328f..8f31e75a27adfe3c41244efdec33b97fd17f0ee6 100644 (file)
@@ -1178,7 +1178,7 @@ Handle(TColStd_HSequenceOfTransient) GEOMImpl_IShapesOperations::GetExistingSubO
   for (; anIt.More(); anIt.Next()) {
     TCollection_ExtendedString anEntry = anIt.Value();
     Standard_Integer aStrLen = anEntry.LengthOfCString();
-    char* anEntryStr = new char[aStrLen];
+    char* anEntryStr = new char[aStrLen+1];
     anEntry.ToUTF8CString(anEntryStr);
     Handle(GEOM_Object) anObj = GetEngine()->GetObject(GetDocID(), anEntryStr, false);
     if (!anObj.IsNull()) {