diff options
author | Vinson Lee <vlee@freedesktop.org> | 2012-07-29 17:54:55 -0700 |
---|---|---|
committer | Brian Paul <brianp@vmware.com> | 2012-07-30 08:13:55 -0600 |
commit | 502c10839e53e7f7e709c10927405d1b84961b80 (patch) | |
tree | 596f8dc47c5ce6e0bf6225200d07bc3186af6fe5 /src/mesa/math | |
parent | 86490bc150dd108d5917bb0f4636a9545fbf1b8e (diff) | |
download | external_mesa3d-502c10839e53e7f7e709c10927405d1b84961b80.zip external_mesa3d-502c10839e53e7f7e709c10927405d1b84961b80.tar.gz external_mesa3d-502c10839e53e7f7e709c10927405d1b84961b80.tar.bz2 |
mesa: Fix wrong sizeof argument in _math_matrix_copy.
Fixes Coverity wrong sizeof argument defect.
Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Signed-off-by: Brian Paul <brianp@vmware.com>
Diffstat (limited to 'src/mesa/math')
-rw-r--r-- | src/mesa/math/m_matrix.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/math/m_matrix.c b/src/mesa/math/m_matrix.c index 40f9229..7c4e9fd 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; } |