From: kga Date: Thu, 28 Mar 2013 05:07:05 +0000 (+0000) Subject: Fix 51781: TC7.2.0: Import GEOM_usinggeom X-Git-Tag: V6_main_FINAL~9 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=c7d1ebd8b871df9672c2e3a788d10535c72e1046;p=modules%2Fgeom.git Fix 51781: TC7.2.0: Import GEOM_usinggeom --- diff --git a/src/GEOMImpl/GEOMImpl_IShapesOperations.cxx b/src/GEOMImpl/GEOMImpl_IShapesOperations.cxx index 0a386cfe1..8f31e75a2 100644 --- a/src/GEOMImpl/GEOMImpl_IShapesOperations.cxx +++ b/src/GEOMImpl/GEOMImpl_IShapesOperations.cxx @@ -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()) {