diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2003-05-04 08:01:09 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2003-05-04 08:01:09 +0000 |
commit | 76e1e775fbb82328130296cdc9c7b28db8b3ca38 (patch) | |
tree | 6b0846b8c8f9023aa87fd87969b37c3dacb5d287 /sys/arch/i386/pci/pci_machdep.c | |
parent | 1e5690ca1034e6c608f20985eb25b1f6aef312b6 (diff) |
snprintf
Diffstat (limited to 'sys/arch/i386/pci/pci_machdep.c')
-rw-r--r-- | sys/arch/i386/pci/pci_machdep.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/i386/pci/pci_machdep.c b/sys/arch/i386/pci/pci_machdep.c index 7ac9f5336d3..1d05bf4a202 100644 --- a/sys/arch/i386/pci/pci_machdep.c +++ b/sys/arch/i386/pci/pci_machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pci_machdep.c,v 1.23 2002/03/14 01:26:33 millert Exp $ */ +/* $OpenBSD: pci_machdep.c,v 1.24 2003/05/04 08:01:08 deraadt Exp $ */ /* $NetBSD: pci_machdep.c,v 1.28 1997/06/06 23:29:17 thorpej Exp $ */ /*- @@ -477,7 +477,7 @@ pci_intr_string(pc, ih) if (ih.line == 0 || ih.line >= ICU_LEN || ih.line == 2) panic("pci_intr_string: bogus handle 0x%x", ih.line); - sprintf(irqstr, "irq %d", ih.line); + snprintf(irqstr, sizeof irqstr, "irq %d", ih.line); return (irqstr); } |