diff options
author | Alexander Motin <mav@FreeBSD.org> | 2017-03-23 06:40:20 +0000 |
---|---|---|
committer | Alexander Motin <mav@FreeBSD.org> | 2017-03-23 06:40:20 +0000 |
commit | 6352900b3df2d8e5409dbf52d6b3d6c494817605 (patch) | |
tree | 6e9df05cb67fe928cbc688fa65d444bdb8a97f29 /sys/cam/cam_xpt.c | |
parent | 8a9a2e93abae6fe5566fba5be15da354890653ba (diff) | |
download | src-test2-6352900b3df2d8e5409dbf52d6b3d6c494817605.tar.gz src-test2-6352900b3df2d8e5409dbf52d6b3d6c494817605.zip |
Notes
Diffstat (limited to 'sys/cam/cam_xpt.c')
-rw-r--r-- | sys/cam/cam_xpt.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/cam/cam_xpt.c b/sys/cam/cam_xpt.c index afc5f37fdcd8..27f3bc00832c 100644 --- a/sys/cam/cam_xpt.c +++ b/sys/cam/cam_xpt.c @@ -5143,9 +5143,9 @@ xptaction(struct cam_sim *sim, union ccb *work_ccb) cpi->max_target = 0; cpi->max_lun = 0; cpi->initiator_id = 0; - strncpy(cpi->sim_vid, "FreeBSD", SIM_IDLEN); - strncpy(cpi->hba_vid, "", HBA_IDLEN); - strncpy(cpi->dev_name, sim->sim_name, DEV_IDLEN); + strlcpy(cpi->sim_vid, "FreeBSD", SIM_IDLEN); + strlcpy(cpi->hba_vid, "", HBA_IDLEN); + strlcpy(cpi->dev_name, sim->sim_name, DEV_IDLEN); cpi->unit_number = sim->unit_number; cpi->bus_id = sim->bus_id; cpi->base_transfer_speed = 0; |