diff options
author | Campbell Barton <ideasman42@gmail.com> | 2021-05-26 19:23:19 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2021-05-26 19:32:44 +0300 |
commit | 7438f0c6c0513dec73c0b91e62c5fc52bbcde3dd (patch) | |
tree | b92703b8fd4da3b2762d358978828f4cc9201bf1 /source/blender/editors/transform/transform_mode_edge_rotate_normal.c | |
parent | de3d54eb9a4fa9ddb1046190ba13daacc4f1dea1 (diff) |
Cleanup: array-parameter warning with GCC 11
Pass the string size as this is less error prone in general.
Diffstat (limited to 'source/blender/editors/transform/transform_mode_edge_rotate_normal.c')
-rw-r--r-- | source/blender/editors/transform/transform_mode_edge_rotate_normal.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/transform/transform_mode_edge_rotate_normal.c b/source/blender/editors/transform/transform_mode_edge_rotate_normal.c index b7b3de69731..6f2bcc148ce 100644 --- a/source/blender/editors/transform/transform_mode_edge_rotate_normal.c +++ b/source/blender/editors/transform/transform_mode_edge_rotate_normal.c @@ -103,7 +103,7 @@ static void applyNormalRotation(TransInfo *t, const int UNUSED(mval[2])) applyNumInput(&t->num, &angle); - headerRotation(t, str, angle); + headerRotation(t, str, sizeof(str), angle); axis_angle_normalized_to_mat3(mat, axis, angle); |