From 9cf2c119735361daa38728c618e5f7f174e73aa0 Mon Sep 17 00:00:00 2001 From: Learn OpenGL ES Date: Thu, 7 Nov 2013 20:49:27 -0500 Subject: Fix another instance of sizeof ptr instead of array. --- linmath.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linmath.h b/linmath.h index 016102a..e5431d6 100644 --- a/linmath.h +++ b/linmath.h @@ -459,7 +459,7 @@ static inline void quat_mul_vec3(vec3 r, quat q, vec3 v) quat_norm(q_, q_); quat_mul(q_, v_, q_); quat_mul(q_, q, q_); - memcpy(r, q_, sizeof(r)); + memcpy(r, q_, sizeof(q_)); } static inline void mat4x4_from_quat(mat4x4 M, quat q) { -- cgit v1.2.3-54-g00ecf