aboutsummaryrefslogtreecommitdiff
path: root/crypto/khazad.c
diff options
context:
space:
mode:
authorWenlin Kang2020-11-12 17:34:42 +0800
committerJakub Kicinski2020-11-13 14:17:49 -0800
commit2f51e5758d61d37e517b809051048c6d0118ab41 (patch)
treea42f008013a437c847b44c5921a0f11a82442528 /crypto/khazad.c
parentf8fd36b95ee4eb90846b5a61061e4bc4d890f021 (diff)
tipc: fix -Wstringop-truncation warnings
Replace strncpy() with strscpy(), fixes the following warning: In function 'bearer_name_validate', inlined from 'tipc_enable_bearer' at net/tipc/bearer.c:246:7: net/tipc/bearer.c:141:2: warning: 'strncpy' specified bound 32 equals destination size [-Wstringop-truncation] strncpy(name_copy, name, TIPC_MAX_BEARER_NAME); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Signed-off-by: Wenlin Kang <wenlin.kang@windriver.com> Acked-by: Ying Xue <ying.xue@windriver.com> Link: https://lore.kernel.org/r/20201112093442.8132-1-wenlin.kang@windriver.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'crypto/khazad.c')
0 files changed, 0 insertions, 0 deletions