From e5088d280959a67314d27ecf3fe9af34c53c89db Mon Sep 17 00:00:00 2001 From: srn Date: Fri, 23 Nov 2007 07:59:57 +0000 Subject: [PATCH] Enlarged a buffer size for building an Attribute type --- src/SALOMEDSImpl/SALOMEDSImpl_AttributeTreeNode.cxx | 2 +- src/SALOMEDSImpl/SALOMEDSImpl_AttributeUserID.cxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/SALOMEDSImpl/SALOMEDSImpl_AttributeTreeNode.cxx b/src/SALOMEDSImpl/SALOMEDSImpl_AttributeTreeNode.cxx index dfcad3b58..3880fe7ad 100644 --- a/src/SALOMEDSImpl/SALOMEDSImpl_AttributeTreeNode.cxx +++ b/src/SALOMEDSImpl/SALOMEDSImpl_AttributeTreeNode.cxx @@ -438,7 +438,7 @@ DF_Attribute* SALOMEDSImpl_AttributeTreeNode::NewEmpty() const string SALOMEDSImpl_AttributeTreeNode::Type() { - char* aNodeName = new char[60]; + char* aNodeName = new char[127]; sprintf(aNodeName, "AttributeTreeNodeGUID%s", ID().c_str()); string ret(aNodeName); delete aNodeName; diff --git a/src/SALOMEDSImpl/SALOMEDSImpl_AttributeUserID.cxx b/src/SALOMEDSImpl/SALOMEDSImpl_AttributeUserID.cxx index b2ba71eca..00c7e4038 100644 --- a/src/SALOMEDSImpl/SALOMEDSImpl_AttributeUserID.cxx +++ b/src/SALOMEDSImpl/SALOMEDSImpl_AttributeUserID.cxx @@ -94,7 +94,7 @@ void SALOMEDSImpl_AttributeUserID::Paste (DF_Attribute* into) string SALOMEDSImpl_AttributeUserID::Type() { - char* aUAttrName = new char[60]; + char* aUAttrName = new char[127]; sprintf(aUAttrName, "AttributeUserID_%s",ID().c_str()); string ret(aUAttrName); -- 2.39.2