diff options
author | Justin Tee <justin.tee@broadcom.com> | 2023-01-10 02:33:07 +0300 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2023-01-12 08:03:14 +0300 |
commit | 1f7b5f94f8d0c97f9b6d10e5ba47e15459ff74ff (patch) | |
tree | fb5ab07680de0028bd914e2b0101fb944fd75364 /lib/sort.c | |
parent | 6058304a66baae4470188337700392d6404079b3 (diff) | |
download | linux-1f7b5f94f8d0c97f9b6d10e5ba47e15459ff74ff.tar.xz |
scsi: lpfc: Replace outdated strncpy() with strscpy()
The kernel test robot pointed out non-NULL terminated string possibilities
when using strncpy() in lpfc_xcvr_data_show() routine. Although we
manually set the NULL character after strncpy(), strncpy() usage is
outdated.
Replace all strncpy() usages with the preferred strscpy() API.
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Justin Tee <justin.tee@broadcom.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'lib/sort.c')
0 files changed, 0 insertions, 0 deletions