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
path: root/source
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2021-06-01 05:49:20 +0300
committerCampbell Barton <ideasman42@gmail.com>2021-06-01 05:49:20 +0300
commitc145cb799897d7db89b1c75dc46fb71c33abfe00 (patch)
treec89496d7ee17679d1915ee49fe36e5b2d1d65ddb /source
parente7b8a3cb0a1429a642c14a2dabc77e3e20ecdf79 (diff)
Fix buffer overrun in paint_line_strokes_spacing
Error in 87cafe92ce2f99d8da620b80e1c26f8078554f93
Diffstat (limited to 'source')
-rw-r--r--source/blender/editors/sculpt_paint/paint_stroke.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/sculpt_paint/paint_stroke.c b/source/blender/editors/sculpt_paint/paint_stroke.c
index b093f07226e..3f1fed5e5ea 100644
--- a/source/blender/editors/sculpt_paint/paint_stroke.c
+++ b/source/blender/editors/sculpt_paint/paint_stroke.c
@@ -1191,7 +1191,7 @@ static void paint_line_strokes_spacing(bContext *C,
const bool use_scene_spacing = paint_stroke_use_scene_spacing(brush, mode);
- float mouse[2], dmouse[2];
+ float mouse[3], dmouse[2];
float length;
float d_world_space_position[3] = {0.0f};
float world_space_position_old[3], world_space_position_new[3];