summaryrefslogtreecommitdiff
path: root/sys/dev/mpt
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/mpt
parente39ff5dd0bdfc2e7dc8cd6883ddd66d88f24b668 (diff)
Notes
Diffstat (limited to 'sys/dev/mpt')
-rw-r--r--sys/dev/mpt/mpt_cam.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/mpt/mpt_cam.c b/sys/dev/mpt/mpt_cam.c
index b60afe124125..63801aa9c2c7 100644
--- a/sys/dev/mpt/mpt_cam.c
+++ b/sys/dev/mpt/mpt_cam.c
@@ -3583,9 +3583,9 @@ mpt_action(struct cam_sim *sim, union ccb *ccb)
} else {
cpi->target_sprt = 0;
}
- strncpy(cpi->sim_vid, "FreeBSD", SIM_IDLEN);
- strncpy(cpi->hba_vid, "LSI", HBA_IDLEN);
- strncpy(cpi->dev_name, cam_sim_name(sim), DEV_IDLEN);
+ strlcpy(cpi->sim_vid, "FreeBSD", SIM_IDLEN);
+ strlcpy(cpi->hba_vid, "LSI", HBA_IDLEN);
+ strlcpy(cpi->dev_name, cam_sim_name(sim), DEV_IDLEN);
cpi->unit_number = cam_sim_unit(sim);
cpi->ccb_h.status = CAM_REQ_CMP;
break;