summaryrefslogtreecommitdiff
path: root/x11-misc/rss-glx/files/rss-glx-0.9.1-param-bound-mismatch.patch
blob: 883dede1c8d4d9ff84d1f189c4392d3743cd4e24 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Fix mismatched array bounds for the parameters of function
rsVec_cross()'s declaration and definition.

--- a/src/rsMath.c
+++ b/src/rsMath.c
@@ -43,7 +43,7 @@ float rsVec_normalize (float *v)
 	return length;
 }
 
-void rsVec_cross (float *v, float vec1[4], float vec2[4])
+void rsVec_cross (float *v, float vec1[3], float vec2[3])
 {
 	v[0] = vec1[1] * vec2[2] - vec2[1] * vec1[2];
 	v[1] = vec1[2] * vec2[0] - vec2[2] * vec1[0];