Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Thorsten Blum and committed by
Martin K. Petersen
931c105d 2a433bf1

+2 -2
+2 -2
drivers/scsi/BusLogic.c
··· 1632 1632 /* 1633 1633 Initialize the Host Adapter Full Model Name from the Model Name. 1634 1634 */ 1635 - strcpy(adapter->full_model, "BusLogic "); 1636 - strcat(adapter->full_model, adapter->model); 1635 + scnprintf(adapter->full_model, sizeof(adapter->full_model), 1636 + "BusLogic %s", adapter->model); 1637 1637 /* 1638 1638 Select an appropriate value for the Tagged Queue Depth either from a 1639 1639 BusLogic Driver Options specification, or based on whether this Host