aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/aacraid
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/aacraid
parente39ff5dd0bdfc2e7dc8cd6883ddd66d88f24b668 (diff)
Notes
Diffstat (limited to 'sys/dev/aacraid')
-rw-r--r--sys/dev/aacraid/aacraid_cam.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/aacraid/aacraid_cam.c b/sys/dev/aacraid/aacraid_cam.c
index 58db62cc617d..675f4c1313d6 100644
--- a/sys/dev/aacraid/aacraid_cam.c
+++ b/sys/dev/aacraid/aacraid_cam.c
@@ -1037,9 +1037,9 @@ aac_cam_action(struct cam_sim *sim, union ccb *ccb)
cpi->transport_version = 0;
cpi->protocol_version = SCSI_REV_SPC2;
#endif
- strncpy(cpi->sim_vid, "FreeBSD", SIM_IDLEN);
- strncpy(cpi->hba_vid, "PMC-Sierra", HBA_IDLEN);
- strncpy(cpi->dev_name, cam_sim_name(sim), DEV_IDLEN);
+ strlcpy(cpi->sim_vid, "FreeBSD", SIM_IDLEN);
+ strlcpy(cpi->hba_vid, "PMC-Sierra", HBA_IDLEN);
+ strlcpy(cpi->dev_name, cam_sim_name(sim), DEV_IDLEN);
cpi->unit_number = cam_sim_unit(sim);
ccb->ccb_h.status = CAM_REQ_CMP;
xpt_done(ccb);