summaryrefslogtreecommitdiff
path: root/sys/arch/alpha/tc/tc_3000_300.c
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/arch/alpha/tc/tc_3000_300.c
parent6d0682c814f06351be128a1d6cec6ee7dc711ff0 (diff)
snprintf
Diffstat (limited to 'sys/arch/alpha/tc/tc_3000_300.c')
-rw-r--r--sys/arch/alpha/tc/tc_3000_300.c4
1 files changed, 2 insertions, 2 deletions
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);