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_constraint.c
parentcddd6a56dd55c811bed08249d64d6797e62068ec (diff)
no functional changes. use sizeof() and MAXFRAME
Diffstat (limited to 'source/blender/makesrna/intern/rna_constraint.c')
-rw-r--r--source/blender/makesrna/intern/rna_constraint.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/makesrna/intern/rna_constraint.c b/source/blender/makesrna/intern/rna_constraint.c
index 6947c94872e..c61ebf5adfc 100644
--- a/source/blender/makesrna/intern/rna_constraint.c
+++ b/source/blender/makesrna/intern/rna_constraint.c
@@ -165,10 +165,10 @@ static StructRNA *rna_ConstraintType_refine(struct PointerRNA *ptr)
static void rna_Constraint_name_set(PointerRNA *ptr, const char *value)
{
bConstraint *con= ptr->data;
- char oldname[32];
+ char oldname[sizeof(con->name)];
/* make a copy of the old name first */
- BLI_strncpy(oldname, con->name, sizeof(oldname));
+ BLI_strncpy(oldname, con->name, sizeof(con->name));
/* copy the new name into the name slot */
BLI_strncpy(con->name, value, sizeof(con->name));