Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2010-04-04 18:33:41 +0400
committerCampbell Barton <ideasman42@gmail.com>2010-04-04 18:33:41 +0400
commit97454d7b85e2be0259318e73a8d4ec662eb75985 (patch)
tree5740303bab516ac57c9b49545a4e6f869273908c /source/blender/makesrna/intern/rna_nodetree.c
parentcddd6a56dd55c811bed08249d64d6797e62068ec (diff)
no functional changes. use sizeof() and MAXFRAME
Diffstat (limited to 'source/blender/makesrna/intern/rna_nodetree.c')
-rw-r--r--source/blender/makesrna/intern/rna_nodetree.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/makesrna/intern/rna_nodetree.c b/source/blender/makesrna/intern/rna_nodetree.c
index 2227304c7e3..82d0f0b3e6e 100644
--- a/source/blender/makesrna/intern/rna_nodetree.c
+++ b/source/blender/makesrna/intern/rna_nodetree.c
@@ -166,10 +166,10 @@ static void rna_Node_update_name(Main *bmain, Scene *scene, PointerRNA *ptr)
{
bNodeTree *ntree= (bNodeTree*)ptr->id.data;
bNode *node= (bNode*)ptr->data;
- char oldname[32];
+ char oldname[sizeof(node->name)];
/* make a copy of the old name first */
- BLI_strncpy(oldname, node->name, sizeof(oldname));
+ BLI_strncpy(oldname, node->name, sizeof(node->name));
nodeUniqueName(ntree, node);
node->flag |= NODE_CUSTOM_NAME;