Merging r40572 through r40597 from trunk into soc-2011-tomato
[blender.git] / source / blender / blenkernel / intern / node.c
index bf8a8ab..52223ec 100644 (file)
@@ -1682,7 +1682,7 @@ void node_type_size(struct bNodeType *ntype, int width, int minwidth, int maxwid
 void node_type_storage(bNodeType *ntype, const char *storagename, void (*freestoragefunc)(struct bNode *), void (*copystoragefunc)(struct bNode *, struct bNode *))
 {
        if (storagename)
-               strncpy(ntype->storagename, storagename, sizeof(ntype->storagename));
+               BLI_strncpy(ntype->storagename, storagename, sizeof(ntype->storagename));
        else
                ntype->storagename[0] = '\0';
        ntype->copystoragefunc = copystoragefunc;