]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
Enlarged a buffer size for building an Attribute type
authorsrn <srn@opencascade.com>
Fri, 23 Nov 2007 07:59:57 +0000 (07:59 +0000)
committersrn <srn@opencascade.com>
Fri, 23 Nov 2007 07:59:57 +0000 (07:59 +0000)
src/SALOMEDSImpl/SALOMEDSImpl_AttributeTreeNode.cxx
src/SALOMEDSImpl/SALOMEDSImpl_AttributeUserID.cxx

index dfcad3b587f7847bb6f1678a1c2234e3077c8fe2..3880fe7adcc02fd24e2c2e0086d1fc9b79513622 100644 (file)
@@ -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;
index b2ba71eca2cfbbf2d4966e8ce4f2afcdd0e6e91f..00c7e4038f25e2af4cacf4301fcb5af022d134da 100644 (file)
@@ -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);