diff options
author | 2023-01-09 15:33:07 -0800 | |
---|---|---|
committer | 2023-01-12 00:03:14 -0500 | |
commit | 1f7b5f94f8d0c97f9b6d10e5ba47e15459ff74ff (patch) | |
tree | fb5ab07680de0028bd914e2b0101fb944fd75364 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | scsi: lpfc: Fix space indentation in lpfc_xcvr_data_show() (diff) | |
download | wireguard-linux-1f7b5f94f8d0c97f9b6d10e5ba47e15459ff74ff.tar.xz wireguard-linux-1f7b5f94f8d0c97f9b6d10e5ba47e15459ff74ff.zip |
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 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions