From: Vinson Lee Date: Mon, 30 Jul 2012 00:54:55 +0000 (-0700) Subject: mesa: Fix wrong sizeof argument in _math_matrix_copy. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=502c10839e53e7f7e709c10927405d1b84961b80;p=mesa.git mesa: Fix wrong sizeof argument in _math_matrix_copy. Fixes Coverity wrong sizeof argument defect. Signed-off-by: Vinson Lee Signed-off-by: Brian Paul --- diff --git a/src/mesa/math/m_matrix.c b/src/mesa/math/m_matrix.c index 40f92293b02..7c4e9fdcbd6 100644 --- a/src/mesa/math/m_matrix.c +++ b/src/mesa/math/m_matrix.c @@ -1437,7 +1437,7 @@ void _math_matrix_copy( GLmatrix *to, const GLmatrix *from ) { memcpy( to->m, from->m, sizeof(Identity) ); - memcpy(to->inv, from->inv, sizeof(from->inv)); + memcpy(to->inv, from->inv, sizeof(*from->inv)); to->flags = from->flags; to->type = from->type; }