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

This commit is contained in:
Shinsuke Irie 2014-02-18 19:09:44 +09:00
parent db172c1a98
commit 69fb332709
Notes: blender-bot 2023-02-14 11:09:49 +01:00
Referenced by issue #38708, Blender crash at start
1 changed files with 2 additions and 2 deletions

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