diff options
author | Tobias Weingartner <weingart@cvs.openbsd.org> | 2006-04-15 01:44:07 +0000 |
---|---|---|
committer | Tobias Weingartner <weingart@cvs.openbsd.org> | 2006-04-15 01:44:07 +0000 |
commit | 8daf5492451d797524abc393197b71eb465ebfff (patch) | |
tree | 081a0b4f4150585be8afbaaaf3a1c932d2a1549f /sys/arch | |
parent | 50609f6596f50fdfa3bdb8af4922295da3ef5e25 (diff) |
Fix the NIOAPIC case as well
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/i386/eisa/eisa_machdep.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/i386/eisa/eisa_machdep.c b/sys/arch/i386/eisa/eisa_machdep.c index e086091fd75..5191fe93fe9 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.8 2004/06/13 21:49:15 niklas Exp $ */ +/* $OpenBSD: eisa_machdep.c,v 1.9 2006/04/15 01:44:06 weingart Exp $ */ /* $NetBSD: eisa_machdep.c,v 1.10.22.2 2000/06/25 19:36:58 sommerfeld Exp $ */ /*- @@ -176,14 +176,14 @@ eisa_intr_string(ec, ih) eisa_chipset_tag_t ec; eisa_intr_handle_t ih; { - static char irqstr[8]; /* 4 + 2 + NUL + sanity */ + static char irqstr[64]; if (ih == 0 || (ih & 0xff) >= ICU_LEN || ih == 2) panic("eisa_intr_string: bogus handle 0x%x", ih); #if NIOAPIC > 0 if (ih & APIC_INT_VIA_APIC) { - sprintf(irqstr, "apic %d int %d (irq %d)", + snprintf(irqstr, sizeof irqstr, "apic %d int %d (irq %d)", APIC_IRQ_APIC(ih), APIC_IRQ_PIN(ih), ih & 0xff); return (irqstr); } |