scsi: qla2xxx: Use strlcpy() instead of strncpy()
authorBart Van Assche <bvanassche@acm.org>
Fri, 9 Aug 2019 03:01:43 +0000 (20:01 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 13 Aug 2019 01:34:06 +0000 (21:34 -0400)
commitcc74049f35e84b6727c70589750c84e6166963ae
treefa3b987c14623369ef17fa586f6340befedb276a
parent1df627b4f7fa5b28ac10b39869c769373376d8f5
scsi: qla2xxx: Use strlcpy() instead of strncpy()

This patch fixes several gcc complaints about string truncation.

Cc: Himanshu Madhani <hmadhani@marvell.com>
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Tested-by: Himanshu Madhani <hmadhani@marvell.com>
Reviewed-by: Himanshu Madhani <hmadhani@marvell.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/qla2xxx/qla_mr.c