diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-02-18 13:14:49 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-02-18 13:14:49 +0300 |
commit | 42fd22531f6d53dccdf3f21efb6b6bcc08c1b51b (patch) | |
tree | 400bc315b49c67cd16f698be99da5869aafd951e /source/blender/editors/space_outliner/outliner.c | |
parent | cff0110d0882f2cf90a54648bc59366348b5694b (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/editors/space_outliner/outliner.c')
-rw-r--r-- | source/blender/editors/space_outliner/outliner.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/space_outliner/outliner.c b/source/blender/editors/space_outliner/outliner.c index c4db054ff50..795546fdda7 100644 --- a/source/blender/editors/space_outliner/outliner.c +++ b/source/blender/editors/space_outliner/outliner.c @@ -4885,7 +4885,7 @@ static void namebutton_cb(bContext *C, void *tsep, char *oldname) Object *ob= (Object *)tselem->id; // id = object bActionGroup *grp= te->directdata; - BLI_uniquename(&ob->pose->agroups, grp, "Group", '.', offsetof(bActionGroup, name), 32); + BLI_uniquename(&ob->pose->agroups, grp, "Group", '.', offsetof(bActionGroup, name), sizeof(grp->name)); WM_event_add_notifier(C, NC_OBJECT|ND_POSE, ob); } break; |