Fix regression that Blender crashes on startup if UI translation is enabled, it was mistake in rB50b2c78ad8b6.

This commit is contained in:
IRIE Shinsuke
2014-02-18 19:09:44 +09:00
parent db172c1a98
commit 69fb332709

View File

@@ -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;
}