summaryrefslogtreecommitdiff
path: root/lib/rbtree_test.c
diff options
context:
space:
mode:
authorJustin Tee <justin.tee@broadcom.com>2023-01-10 02:33:07 +0300
committerMartin K. Petersen <martin.petersen@oracle.com>2023-01-12 08:03:14 +0300
commit1f7b5f94f8d0c97f9b6d10e5ba47e15459ff74ff (patch)
treefb5ab07680de0028bd914e2b0101fb944fd75364 /lib/rbtree_test.c
parent6058304a66baae4470188337700392d6404079b3 (diff)
downloadlinux-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/rbtree_test.c')
0 files changed, 0 insertions, 0 deletions