cortx-30080: replace strlen with strnlen to satisfy Codacy
@@ -70,7 +70,7 @@ M0_INTERNAL int m0_cob_ns_rec_of(struct m0_be_btree *cob_namespace,
m0_be_btree_cursor_init(&it, cob_namespace);
M0_SET0(&nskey_bs);
snprintf(nskey_bs, UINT32_STR_LEN, "%u", cob_idx);
- nskey_bs_len = strlen(nskey_bs);
+ nskey_bs_len = strnlen(nskey_bs, UINT32_STR_LEN);
rc = m0_cob_nskey_make(&key, key_gfid, nskey_bs,
nskey_bs_len);
