Whamcloud - gitweb
LU-17592 build: kernel 6.8 removed strlcpy()
[fs/lustre-release.git] / lustre / target / tgt_grant.c
index 1f21085..a835071 100644 (file)
@@ -1563,7 +1563,7 @@ int tgt_grant_commit_cb_add(struct thandle *th, struct obd_export *exp,
        dcb = &tgc->tgc_cb;
        dcb->dcb_func = tgt_grant_commit_cb;
        INIT_LIST_HEAD(&dcb->dcb_linkage);
-       strlcpy(dcb->dcb_name, "tgt_grant_commit_cb", sizeof(dcb->dcb_name));
+       strscpy(dcb->dcb_name, "tgt_grant_commit_cb", sizeof(dcb->dcb_name));
 
        rc = dt_trans_cb_add(th, dcb);
        if (rc) {