summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2003-05-13 21:32:18 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2003-05-13 21:32:18 +0000
commit9e1e128699d3e7ab600378c07a87f331f6ab7972 (patch)
treeb300e6ffe94dbd7e5e702aa3c2febf2bc4b18707 /sys
parent6d0682c814f06351be128a1d6cec6ee7dc711ff0 (diff)
snprintf
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/alpha/tc/ioasic.c4
-rw-r--r--sys/arch/alpha/tc/tc_3000_300.c4
-rw-r--r--sys/arch/alpha/tc/tc_3000_500.c4
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);