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 <thorsten.blum@linux.dev>
Link: https://patch.msgid.link/20260224144828.585577-1-thorsten.blum@linux.dev
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
master
Thorsten Blum 2026-02-24 15:48:27 +01:00 committed by Martin K. Petersen
parent 2a433bf17c
commit 931c105de1
1 changed files with 2 additions and 2 deletions

View File

@ -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