From c7d1ebd8b871df9672c2e3a788d10535c72e1046 Mon Sep 17 00:00:00 2001 From: kga Date: Thu, 28 Mar 2013 05:07:05 +0000 Subject: [PATCH] Fix 51781: TC7.2.0: Import GEOM_usinggeom --- src/GEOMImpl/GEOMImpl_IShapesOperations.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()) { -- 2.39.2