use BLI_strncpy and BLI_snprintf when the size of the string is known.
[blender-staging.git] / source / blender / nodes / composite / node_composite_tree.c
index 400b6a1fa5ffd29762157288720c2469f8f80cd8..93456d39c9cf374f7d5a836a80e375e3161124b2 100644 (file)
@@ -605,7 +605,7 @@ void ntreeCompositExecTree(bNodeTree *ntree, RenderData *rd, int do_preview)
                                        ntree->progress(ntree->prh, (1.0f - curnode/(float)totnode));
                                if(ntree->stats_draw) {
                                        char str[128];
-                                       sprintf(str, "Compositing %d %s", curnode, node->name);
+                                       BLI_snprintf(str, sizeof(str), "Compositing %d %s", curnode, node->name);
                                        ntree->stats_draw(ntree->sdh, str);
                                }
                                curnode--;