diff options
| author | Archie Cobbs <archie@FreeBSD.org> | 1998-12-04 22:54:57 +0000 |
|---|---|---|
| committer | Archie Cobbs <archie@FreeBSD.org> | 1998-12-04 22:54:57 +0000 |
| commit | 2127f26023a9be443e05b592b35c77b454ba8f77 (patch) | |
| tree | 951cf624a9440f22eae605ca46c2e80246f1bf08 /sys/dev/isp | |
| parent | 790eeb2b519441c661126930cec65560727a8ec5 (diff) | |
Notes
Diffstat (limited to 'sys/dev/isp')
| -rw-r--r-- | sys/dev/isp/isp_pci.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/isp/isp_pci.c b/sys/dev/isp/isp_pci.c index ae7842b2e079a..f22cfe17e7199 100644 --- a/sys/dev/isp/isp_pci.c +++ b/sys/dev/isp/isp_pci.c @@ -270,7 +270,7 @@ isp_pci_attach(config_id, unit) pcs->pci_st == IO_SPACE_MAPPING? "I/O" : "Memory"); isp = &pcs->pci_isp; - (void) sprintf(isp->isp_name, "isp%d", unit); + (void) snprintf(isp->isp_name, sizeof(isp->isp_name), "isp%d", unit); isp->isp_osinfo.unit = unit; data = pci_conf_read(config_id, PCI_ID_REG); |
