} else {
lum3->lmm_magic = cpu_to_le32(LOV_USER_MAGIC_V3);
entry->lcme_size = cpu_to_le32(sizeof(*lum3));
- strlcpy(lum3->lmm_pool_name, pool,
+ strscpy(lum3->lmm_pool_name, pool,
sizeof(lum3->lmm_pool_name));
shift += sizeof(*lum3) - sizeof(*lum);
}
v3->lmm_stripe_offset = cpu_to_le32(v1->lmm_stripe_offset);
v3->lmm_stripe_size = cpu_to_le32(v1->lmm_stripe_size);
- strlcpy(v3->lmm_pool_name, pool, sizeof(v3->lmm_pool_name));
+ strscpy(v3->lmm_pool_name, pool, sizeof(v3->lmm_pool_name));
info->lti_buf.lb_buf = v3;
info->lti_buf.lb_len = sizeof(*v3);