From: Thorsten Blum Date: Tue, 24 Feb 2026 14:48:27 +0000 (+0100) Subject: scsi: BusLogic: Replace deprecated strcpy() + strcat() in blogic_rdconfig() X-Git-Tag: v7.1-rc1~60^2~56 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=931c105de11c2e0e9675fbc061b16a9c5f134dcf;p=thirdparty%2Fkernel%2Flinux.git scsi: BusLogic: Replace deprecated strcpy() + strcat() in blogic_rdconfig() strcpy() is deprecated [1] and using strcat() is discouraged. Replace them with scnprintf(). No functional changes. Link: https://www.kernel.org/doc/html/latest/process/deprecated.html#strcpy [1] Signed-off-by: Thorsten Blum Link: https://patch.msgid.link/20260224144828.585577-1-thorsten.blum@linux.dev Signed-off-by: Martin K. Petersen --- diff --git a/drivers/scsi/BusLogic.c b/drivers/scsi/BusLogic.c index da6599ae3d0d8..5304d2febd63e 100644 --- a/drivers/scsi/BusLogic.c +++ b/drivers/scsi/BusLogic.c @@ -1632,8 +1632,8 @@ common: /* Initialize the Host Adapter Full Model Name from the Model Name. */ - strcpy(adapter->full_model, "BusLogic "); - strcat(adapter->full_model, adapter->model); + scnprintf(adapter->full_model, sizeof(adapter->full_model), + "BusLogic %s", adapter->model); /* Select an appropriate value for the Tagged Queue Depth either from a BusLogic Driver Options specification, or based on whether this Host