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>2012-10-06 16:04:09 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-10-06 16:04:09 +0400
commit4cc29110aa8c2f351f357859752342af28dc8fd5 (patch)
tree9356b57d4aab7b87540f02c86636e5b76b546124 /source/blender/editors/space_view3d
parentb6a803fb368953bca1a7480694a7ab6d97439fad (diff)
fix writing past array bounds in imagewraposa().
also correct array sizes in othere areas.
Diffstat (limited to 'source/blender/editors/space_view3d')
-rw-r--r--source/blender/editors/space_view3d/drawobject.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/space_view3d/drawobject.c b/source/blender/editors/space_view3d/drawobject.c
index a6f4527cf98..84a69b811ca 100644
--- a/source/blender/editors/space_view3d/drawobject.c
+++ b/source/blender/editors/space_view3d/drawobject.c
@@ -5945,8 +5945,8 @@ static int drawmball(Scene *scene, View3D *v3d, RegionView3D *rv3d, Base *base,
if (mb->editelems) {
if ((G.f & G_PICKSEL) == 0) {
- unsigned char wire_col[3];
- UI_GetThemeColor3ubv(TH_WIRE, wire_col);
+ unsigned char wire_col[4];
+ UI_GetThemeColor4ubv(TH_WIRE, wire_col);
glColor3ubv(wire_col);
drawDispList(scene, v3d, rv3d, base, dt, dflag, wire_col);