Merging r41120 through from trunk r41139 into soc-2011-tomato
[blender.git] / source / blender / blenkernel / intern / node.c
index 7093e2e..be61689 100644 (file)
@@ -374,7 +374,7 @@ void nodeMakeDynamicType(bNode *node)
                /*node->typeinfo= MEM_dupallocN(ntype);*/
                bNodeType *newtype= MEM_callocN(sizeof(bNodeType), "dynamic bNodeType");
                *newtype= *ntype;
-               strcpy(newtype->name, ntype->name);
+               BLI_strncpy(newtype->name, ntype->name, sizeof(newtype->name));
                node->typeinfo= newtype;
        }
 }