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
parent
2a433bf17c
commit
931c105de1
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue