bugfix [#23593] using material_slot.material=material_slot.material.copy() causes inescapable loop and blender to hang

This commit is contained in:
Campbell Barton 2010-09-06 11:29:23 +00:00
parent a436adf26d
commit 629c19ff87

@ -1146,7 +1146,7 @@ static int check_for_dupid(ListBase *lb, ID *id, char *name)
/* this would overflow name buffer */
left[16] = 0;
/* left_len = 16; */ /* for now this isnt used again */
memcpy(name, left, sizeof(char) * 16);
memcpy(name, left, sizeof(char) * 17);
continue;
}
/* this format specifier is from hell... */