Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2010-01-13 11:12:57 +0300
committerCampbell Barton <ideasman42@gmail.com>2010-01-13 11:12:57 +0300
commitd2e7abec82010ae6edede459bbf33468a9f5a839 (patch)
treed1e6964b5187ceb19676cb122db684bd285596e4 /source/blender
parent7df44b9cede3aa903c4463f9e5f885a705b4173a (diff)
makesrna was failing because of a buffer overrun from an error in r25949
Diffstat (limited to 'source/blender')
-rw-r--r--source/blender/makesrna/intern/rna_nodetree.c4
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;