summaryrefslogtreecommitdiff
path: root/sys/arch/i386/eisa/eisa_machdep.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2003-05-04 08:01:09 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2003-05-04 08:01:09 +0000
commit76e1e775fbb82328130296cdc9c7b28db8b3ca38 (patch)
tree6b0846b8c8f9023aa87fd87969b37c3dacb5d287 /sys/arch/i386/eisa/eisa_machdep.c
parent1e5690ca1034e6c608f20985eb25b1f6aef312b6 (diff)
snprintf
Diffstat (limited to 'sys/arch/i386/eisa/eisa_machdep.c')
-rw-r--r--sys/arch/i386/eisa/eisa_machdep.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/i386/eisa/eisa_machdep.c b/sys/arch/i386/eisa/eisa_machdep.c
index 15e1bf6bdd1..332a921ec65 100644
--- a/sys/arch/i386/eisa/eisa_machdep.c
+++ b/sys/arch/i386/eisa/eisa_machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: eisa_machdep.c,v 1.5 2002/03/14 01:26:32 millert Exp $ */
+/* $OpenBSD: eisa_machdep.c,v 1.6 2003/05/04 08:01:08 deraadt Exp $ */
/* $NetBSD: eisa_machdep.c,v 1.6 1997/06/06 23:12:52 thorpej Exp $ */
/*-
@@ -158,7 +158,7 @@ eisa_intr_string(ec, ih)
if (ih == 0 || ih >= ICU_LEN || ih == 2)
panic("eisa_intr_string: bogus handle 0x%x", ih);
- sprintf(irqstr, "irq %d", ih);
+ snprintf(irqstr, sizeof irqstr, "irq %d", ih);
return (irqstr);
}