platform/surface: Replace deprecated strcpy + strcat in blogic_rdconfig
Subsystems (2)
PATCH RESEND 1/1 platform/surface: Replace deprecated strcpy + strcat in blogic_rdconfig
strcpy() is deprecated [1] 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
@@ -1632,8 +1632,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 · 2 lines
Thorsten Blum <[email protected]> GPG: 1D60 735E 8AEF 3BE4 73B6 9D84 7336 78FD 8DFE EAD4
Thorsten,
drivers/scsi/BusLogic.c
Quoted 1 line
drivers/scsi/BusLogic.c +0
-0
...and yet tagged as "platform/surface:" in Subject. I fixed it up.
Signature · 1 line
Martin K. Petersen
Quoted 3 lines · Martin K. Petersen
drivers/scsi/BusLogic.c
Quoted 1 line
drivers/scsi/BusLogic.c +0
-0...and yet tagged as "platform/surface:" in Subject. I fixed it up.
Sorry Martin, no idea how that happened. Thanks for fixing it.
Best,
Thorsten
Martin K. Petersen
AppliedQuoted 4 lines · Thorsten Blum
strcpy()is deprecated [1] and usingstrcat()is discouraged. Replace them withscnprintf(). No functional changes.
Applied to 7.1/scsi-queue, thanks!
[1/1] platform/surface: Replace deprecated strcpy + strcat in blogic_rdconfig
https://git.kernel.org/mkp/scsi/c/931c105de11c
Signature · 1 line
Martin K. Petersen