aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/tws
diff options
context:
space:
mode:
authorAlan Somers <asomers@FreeBSD.org>2017-01-04 20:26:42 +0000
committerAlan Somers <asomers@FreeBSD.org>2017-01-04 20:26:42 +0000
commit4195c7de2471d6212744bcbf128d659e94801d17 (patch)
tree7fdef0b78cad4790c16b1209161939aeb9cb7b44 /sys/dev/tws
parente39ff5dd0bdfc2e7dc8cd6883ddd66d88f24b668 (diff)
Notes
Diffstat (limited to 'sys/dev/tws')
-rw-r--r--sys/dev/tws/tws_cam.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/tws/tws_cam.c b/sys/dev/tws/tws_cam.c
index 9866a29fe3451..7475152c39261 100644
--- a/sys/dev/tws/tws_cam.c
+++ b/sys/dev/tws/tws_cam.c
@@ -309,9 +309,9 @@ tws_action(struct cam_sim *sim, union ccb *ccb)
ccb->cpi.bus_id = cam_sim_bus(sim);
ccb->cpi.initiator_id = TWS_SCSI_INITIATOR_ID;
ccb->cpi.base_transfer_speed = 6000000;
- strncpy(ccb->cpi.sim_vid, "FreeBSD", SIM_IDLEN);
- strncpy(ccb->cpi.hba_vid, "3ware", HBA_IDLEN);
- strncpy(ccb->cpi.dev_name, cam_sim_name(sim), DEV_IDLEN);
+ strlcpy(ccb->cpi.sim_vid, "FreeBSD", SIM_IDLEN);
+ strlcpy(ccb->cpi.hba_vid, "3ware", HBA_IDLEN);
+ strlcpy(ccb->cpi.dev_name, cam_sim_name(sim), DEV_IDLEN);
#if (__FreeBSD_version >= 700000 )
ccb->cpi.transport = XPORT_SPI;
ccb->cpi.transport_version = 2;