From 69fb332709690a8c102e4fc282fe4ee5134f6dea Mon Sep 17 00:00:00 2001 From: IRIE Shinsuke Date: Tue, 18 Feb 2014 19:09:44 +0900 Subject: Fix regression that Blender crashes on startup if UI translation is enabled, it was mistake in rB50b2c78ad8b6. --- source/blender/makesrna/intern/rna_access.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source') 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; } -- cgit v1.2.3