use BLI_strncpy and BLI_snprintf when the size of the string is known.
[blender-staging.git] / source / blender / editors / uvedit / uvedit_unwrap_ops.c
index 830dc224c94921247d037c9f8db869de0f4379c3..840e094980c210b9ed2d05e430bab650fc3f4459 100644 (file)
@@ -46,6 +46,7 @@
 #include "BLI_editVert.h"
 #include "BLI_uvproject.h"
 #include "BLI_utildefines.h"
+#include "BLI_string.h"
 
 #include "BKE_context.h"
 #include "BKE_customdata.h"
@@ -334,7 +335,7 @@ static void minimize_stretch_iteration(bContext *C, wmOperator *op, int interact
                param_flush(ms->handle);
 
                if(sa) {
-                       sprintf(str, "Minimize Stretch. Blend %.2f", ms->blend);
+                       BLI_snprintf(str, sizeof(str), "Minimize Stretch. Blend %.2f", ms->blend);
                        ED_area_headerprint(sa, str);
                }