mesa: Fix wrong sizeof argument in _math_matrix_copy.
authorVinson Lee <vlee@freedesktop.org>
Mon, 30 Jul 2012 00:54:55 +0000 (17:54 -0700)
committerBrian Paul <brianp@vmware.com>
Mon, 30 Jul 2012 14:13:55 +0000 (08:13 -0600)
Fixes Coverity wrong sizeof argument defect.

Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Signed-off-by: Brian Paul <brianp@vmware.com>
src/mesa/math/m_matrix.c

index 40f92293b02c4027d69565a4b5ec36b8a24bf5f2..7c4e9fdcbd6c286aa2e2b8bb1184dcd62d2e6ab3 100644 (file)
@@ -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;
 }