From: srn Date: Fri, 23 Nov 2007 07:59:57 +0000 (+0000) Subject: Enlarged a buffer size for building an Attribute type X-Git-Tag: V4_1_0rc2~6 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=e5088d280959a67314d27ecf3fe9af34c53c89db;p=modules%2Fkernel.git Enlarged a buffer size for building an Attribute type --- 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);