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
path: root/source
diff options
context:
space:
mode:
authorIRIE Shinsuke <irieshinsuke@yahoo.co.jp>2014-02-18 14:09:44 +0400
committerIRIE Shinsuke <irieshinsuke@yahoo.co.jp>2014-02-18 14:09:44 +0400
commit69fb332709690a8c102e4fc282fe4ee5134f6dea (patch)
tree002a0f3a26bcdc377b98528d6786a702d01d0143 /source
parentdb172c1a988bda65504f4615bdf46ca3b8b447ff (diff)
Fix regression that Blender crashes on startup if UI translation is enabled, it was mistake in rB50b2c78ad8b6.
Diffstat (limited to 'source')
-rw-r--r--source/blender/makesrna/intern/rna_access.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/makesrna/intern/rna_access.c b/source/blender/makesrna/intern/rna_access.c
index 7ba0cabc6c2..0ea55a08d75 100644
--- a/source/blender/makesrna/intern/rna_access.c
+++ b/source/blender/makesrna/intern/rna_access.c
@@ -1283,8 +1283,8 @@ void RNA_property_enum_items_gettexted(bContext *C, PointerRNA *ptr, PropertyRNA
}
}
- nitem = MEM_mallocN(sizeof(EnumPropertyItem) * tot + 1, "enum_items_gettexted");
- memcpy(nitem, item, sizeof(EnumPropertyItem) * tot + 1);
+ nitem = MEM_mallocN(sizeof(EnumPropertyItem) * (tot + 1), "enum_items_gettexted");
+ memcpy(nitem, item, sizeof(EnumPropertyItem) * (tot + 1));
*r_free = true;
}