diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-01-13 11:12:57 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-01-13 11:12:57 +0300 |
commit | d2e7abec82010ae6edede459bbf33468a9f5a839 (patch) | |
tree | d1e6964b5187ceb19676cb122db684bd285596e4 | |
parent | 7df44b9cede3aa903c4463f9e5f885a705b4173a (diff) |
makesrna was failing because of a buffer overrun from an error in r25949
-rw-r--r-- | source/blender/makesrna/intern/rna_nodetree.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/makesrna/intern/rna_nodetree.c b/source/blender/makesrna/intern/rna_nodetree.c index 646a7419d68..d7c72412e51 100644 --- a/source/blender/makesrna/intern/rna_nodetree.c +++ b/source/blender/makesrna/intern/rna_nodetree.c @@ -553,7 +553,7 @@ static StructRNA* def_node(BlenderRNA *brna, int node_id) static EnumPropertyItem* alloc_node_type_items(int category) { int i; - int count = 2; + int count = 3; EnumPropertyItem *item, *items; for(i=0; i<MaxNodes; i++) @@ -589,6 +589,8 @@ static EnumPropertyItem* alloc_node_type_items(int category) item++; + /* NOTE!, increase 'count' when adding items here */ + memset(item, 0, sizeof(EnumPropertyItem)); return items; |