platform/surface: Replace deprecated strcpy + strcat in blogic_rdconfig
Subsystems (2)
PATCH 1/1 platform/surface: Replace deprecated strcpy + strcat in blogic_rdconfig
strcpy() is deprecated and using strcat() is discouraged. Replace them with scnprintf(). No functional changes.
Signed-off-by Thorsten Blum <[email protected]>
--- drivers/scsi/BusLogic.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/scsi/BusLogic.c +2 -2
@@ -1631,8 +1631,8 @@ static bool __init blogic_rdconfig(struct blogic_adapter *adapter)/* 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
Signature · 1 line
2.51.1