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>2013-11-16 21:03:09 +0400
committerCampbell Barton <ideasman42@gmail.com>2013-11-16 21:05:18 +0400
commite8bd916ba5e6d65c8bcf246f3fa3fba5e0e7bdb1 (patch)
tree79bd28096572a8005018bef4a87ab3c7cd440875 /source/blender
parentfd8ad2bbe438f74ec816f43141de04dfe03389d9 (diff)
armature editing: using too short length checking to add L/R suffix.
Diffstat (limited to 'source/blender')
-rw-r--r--source/blender/editors/armature/armature_add.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/armature/armature_add.c b/source/blender/editors/armature/armature_add.c
index 351fd2844c9..b91deab6c8d 100644
--- a/source/blender/editors/armature/armature_add.c
+++ b/source/blender/editors/armature/armature_add.c
@@ -624,7 +624,7 @@ static int armature_extrude_exec(bContext *C, wmOperator *op)
BLI_strncpy(newbone->name, ebone->name, sizeof(newbone->name));
if (flipbone && forked) { // only set if mirror edit
- if (strlen(newbone->name) < 30) {
+ if (strlen(newbone->name) < (MAXBONENAME - 2)) {
if (a == 0) strcat(newbone->name, "_L");
else strcat(newbone->name, "_R");
}