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
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2021-06-01 05:49:20 +0300
committerJeroen Bakker <jeroen@blender.org>2021-06-01 15:02:30 +0300
commit58e3d82108a016f535fc3099be375c84aafd9167 (patch)
treeec7c27b64e5f6134d8f4a41987544697e816661f
parent6dde03eb4aa71a0a2752cbd89933eeab4fab361f (diff)
Fix buffer overrun in paint_line_strokes_spacing
Error in 87cafe92ce2f99d8da620b80e1c26f8078554f93
-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 463334720c5..b395eea03e5 100644
--- a/source/blender/editors/sculpt_paint/paint_stroke.c
+++ b/source/blender/editors/sculpt_paint/paint_stroke.c
@@ -1164,7 +1164,7 @@ static void paint_line_strokes_spacing(bContext *C,
{
UnifiedPaintSettings *ups = stroke->ups;
- float mouse[2], dmouse[2];
+ float mouse[3], dmouse[2];
float length;
sub_v2_v2v2(dmouse, new_pos, old_pos);