mirror of
https://github.com/linux-msm/laptops-kernel.git
synced 2026-08-13 14:19:53 -07:00
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>
This commit is contained in:
committed by
Martin K. Petersen
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
|
||||
|
||||
Reference in New Issue
Block a user