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-02-18 13:14:49 +0300
committerCampbell Barton <ideasman42@gmail.com>2010-02-18 13:14:49 +0300
commit42fd22531f6d53dccdf3f21efb6b6bcc08c1b51b (patch)
tree400bc315b49c67cd16f698be99da5869aafd951e /source/blender/blenkernel/intern/action.c
parentcff0110d0882f2cf90a54648bc59366348b5694b (diff)
constraints unique name length was set too long (could overrun the buffer), use sizeof() with other instances of BLI_uniquename too
Diffstat (limited to 'source/blender/blenkernel/intern/action.c')
-rw-r--r--source/blender/blenkernel/intern/action.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/action.c b/source/blender/blenkernel/intern/action.c
index dc1fcd02234..13f247e7c3c 100644
--- a/source/blender/blenkernel/intern/action.c
+++ b/source/blender/blenkernel/intern/action.c
@@ -748,7 +748,7 @@ void pose_add_group (Object *ob)
grp= MEM_callocN(sizeof(bActionGroup), "PoseGroup");
strcpy(grp->name, "Group");
BLI_addtail(&pose->agroups, grp);
- BLI_uniquename(&pose->agroups, grp, "Group", '.', offsetof(bActionGroup, name), 32);
+ BLI_uniquename(&pose->agroups, grp, "Group", '.', offsetof(bActionGroup, name), sizeof(grp->name));
pose->active_group= BLI_countlist(&pose->agroups);
}