diff options
Diffstat (limited to 'common')
-rw-r--r-- | common/math_util.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/common/math_util.c b/common/math_util.c index 247bda6dd9..ad98aecdf5 100644 --- a/common/math_util.c +++ b/common/math_util.c @@ -167,7 +167,7 @@ void rotate(const vector_3_t v, const matrix_3x3_t R, vector_3_t res) if (R == NULL) { if (v != res) - memcpy(res, v, sizeof(*v)); + memcpy(res, v, sizeof(vector_3_t)); return; } @@ -196,7 +196,7 @@ void rotate_inv(const vector_3_t v, const matrix_3x3_t R, vector_3_t res) if (R == NULL) { if (v != res) - memcpy(res, v, sizeof(*v)); + memcpy(res, v, sizeof(vector_3_t)); return; } |