diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-10-06 16:04:09 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-10-06 16:04:09 +0400 |
commit | 4cc29110aa8c2f351f357859752342af28dc8fd5 (patch) | |
tree | 9356b57d4aab7b87540f02c86636e5b76b546124 /source/blender/blenlib | |
parent | b6a803fb368953bca1a7480694a7ab6d97439fad (diff) |
fix writing past array bounds in imagewraposa().
also correct array sizes in othere areas.
Diffstat (limited to 'source/blender/blenlib')
-rw-r--r-- | source/blender/blenlib/intern/math_vector_inline.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenlib/intern/math_vector_inline.c b/source/blender/blenlib/intern/math_vector_inline.c index c409e536b45..2cfe999e032 100644 --- a/source/blender/blenlib/intern/math_vector_inline.c +++ b/source/blender/blenlib/intern/math_vector_inline.c @@ -689,7 +689,7 @@ MINLINE void normal_float_to_short_v3(short out[3], const float in[3]) /********************************* Comparison ********************************/ -MINLINE int is_zero_v2(const float v[3]) +MINLINE int is_zero_v2(const float v[2]) { return (v[0] == 0 && v[1] == 0); } |