diff options
| author | Alan Somers <asomers@FreeBSD.org> | 2017-01-04 20:26:42 +0000 |
|---|---|---|
| committer | Alan Somers <asomers@FreeBSD.org> | 2017-01-04 20:26:42 +0000 |
| commit | 4195c7de2471d6212744bcbf128d659e94801d17 (patch) | |
| tree | 7fdef0b78cad4790c16b1209161939aeb9cb7b44 /sys/dev/ata | |
| parent | e39ff5dd0bdfc2e7dc8cd6883ddd66d88f24b668 (diff) | |
Notes
Diffstat (limited to 'sys/dev/ata')
| -rw-r--r-- | sys/dev/ata/ata-all.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/ata/ata-all.c b/sys/dev/ata/ata-all.c index 889c37b5ef25..a4fcbc179c05 100644 --- a/sys/dev/ata/ata-all.c +++ b/sys/dev/ata/ata-all.c @@ -1167,9 +1167,9 @@ ataaction(struct cam_sim *sim, union ccb *ccb) cpi->base_transfer_speed = 150000; else cpi->base_transfer_speed = 3300; - strncpy(cpi->sim_vid, "FreeBSD", SIM_IDLEN); - strncpy(cpi->hba_vid, "ATA", HBA_IDLEN); - strncpy(cpi->dev_name, cam_sim_name(sim), DEV_IDLEN); + strlcpy(cpi->sim_vid, "FreeBSD", SIM_IDLEN); + strlcpy(cpi->hba_vid, "ATA", HBA_IDLEN); + strlcpy(cpi->dev_name, cam_sim_name(sim), DEV_IDLEN); cpi->unit_number = cam_sim_unit(sim); if (ch->flags & ATA_SATA) cpi->transport = XPORT_SATA; |
