diff options
Diffstat (limited to 'sys/arch/alpha')
-rw-r--r-- | sys/arch/alpha/tc/ioasic.c | 4 | ||||
-rw-r--r-- | sys/arch/alpha/tc/tc_3000_300.c | 4 | ||||
-rw-r--r-- | sys/arch/alpha/tc/tc_3000_500.c | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/sys/arch/alpha/tc/ioasic.c b/sys/arch/alpha/tc/ioasic.c index a66b8eaf010..aa5e360149d 100644 --- a/sys/arch/alpha/tc/ioasic.c +++ b/sys/arch/alpha/tc/ioasic.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ioasic.c,v 1.9 2002/05/02 22:56:06 miod Exp $ */ +/* $OpenBSD: ioasic.c,v 1.10 2003/05/13 21:32:17 deraadt Exp $ */ /* $NetBSD: ioasic.c,v 1.34 2000/07/18 06:10:06 thorpej Exp $ */ /*- @@ -211,7 +211,7 @@ ioasicattach(parent, self, aux) cp = malloc(12, M_DEVBUF, M_NOWAIT); if (cp == NULL) panic("ioasicattach"); - sprintf(cp, "slot %lu", i); + snprintf(cp, 12, "slot %lu", i); #ifdef EVCNT_COUNTERS evcnt_attach_dynamic(&ioasicintrs[i].iai_evcnt, EVCNT_TYPE_INTR, pevcnt, self->dv_xname, cp); diff --git a/sys/arch/alpha/tc/tc_3000_300.c b/sys/arch/alpha/tc/tc_3000_300.c index fabab7d55c5..1c352912f27 100644 --- a/sys/arch/alpha/tc/tc_3000_300.c +++ b/sys/arch/alpha/tc/tc_3000_300.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tc_3000_300.c,v 1.9 2002/05/02 22:56:06 miod Exp $ */ +/* $OpenBSD: tc_3000_300.c,v 1.10 2003/05/13 21:32:17 deraadt Exp $ */ /* $NetBSD: tc_3000_300.c,v 1.26 2001/07/27 00:25:21 thorpej Exp $ */ /* @@ -111,7 +111,7 @@ tc_3000_300_intr_setup() cp = malloc(12, M_DEVBUF, M_NOWAIT); if (cp == NULL) panic("tc_3000_300_intr_setup"); - sprintf(cp, "slot %lu", i); + snprintf(cp, 12, "slot %lu", i); #ifdef EVCNT_COUNTERS evcnt_attach_dynamic(&tc_3000_300_intr[i].tci_evcnt, EVCNT_TYPE_INTR, NULL, "tc", cp); diff --git a/sys/arch/alpha/tc/tc_3000_500.c b/sys/arch/alpha/tc/tc_3000_500.c index a1e03986559..9dca715fdb8 100644 --- a/sys/arch/alpha/tc/tc_3000_500.c +++ b/sys/arch/alpha/tc/tc_3000_500.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tc_3000_500.c,v 1.10 2002/05/02 22:56:06 miod Exp $ */ +/* $OpenBSD: tc_3000_500.c,v 1.11 2003/05/13 21:32:17 deraadt Exp $ */ /* $NetBSD: tc_3000_500.c,v 1.24 2001/07/27 00:25:21 thorpej Exp $ */ /* @@ -135,7 +135,7 @@ tc_3000_500_intr_setup() cp = malloc(12, M_DEVBUF, M_NOWAIT); if (cp == NULL) panic("tc_3000_500_intr_setup"); - sprintf(cp, "slot %lu", i); + snprintf(cp, 12, "slot %lu", i); #ifdef EVCNT_COUNTERS evcnt_attach_dynamic(&tc_3000_500_intr[i].tci_evcnt, EVCNT_TYPE_INTR, NULL, "tc", cp); |