diff options
| author | Conrad Meyer <cem@FreeBSD.org> | 2016-04-26 20:59:21 +0000 |
|---|---|---|
| committer | Conrad Meyer <cem@FreeBSD.org> | 2016-04-26 20:59:21 +0000 |
| commit | 0f752e9f7b50061af0418df47c15063affef3952 (patch) | |
| tree | 23e8f40580fbb8d033faa50f024f54cc47eac966 /sys/dev/aacraid | |
| parent | 66527f742bfb1f358bc10eadffdb9cc1fdfa93ac (diff) | |
Notes
Diffstat (limited to 'sys/dev/aacraid')
| -rw-r--r-- | sys/dev/aacraid/aacraid_cam.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/dev/aacraid/aacraid_cam.c b/sys/dev/aacraid/aacraid_cam.c index 922673f1c183..394b67d725f8 100644 --- a/sys/dev/aacraid/aacraid_cam.c +++ b/sys/dev/aacraid/aacraid_cam.c @@ -568,9 +568,11 @@ aac_container_special_command(struct cam_sim *sim, union ccb *ccb, p->additional_length = 31; p->flags = SID_WBus16|SID_Sync|SID_CmdQue; /* OEM Vendor defines */ - strcpy(p->vendor,"Adaptec "); - strcpy(p->product,"Array "); - strcpy(p->revision,"V1.0"); + strncpy(p->vendor, "Adaptec ", sizeof(p->vendor)); + strncpy(p->product, "Array ", + sizeof(p->product)); + strncpy(p->revision, "V1.0", + sizeof(p->revision)); } } else { if (inq->page_code == SVPD_SUPPORTED_PAGE_LIST) { |
