From 9e1e128699d3e7ab600378c07a87f331f6ab7972 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Tue, 13 May 2003 21:32:18 +0000 Subject: snprintf --- sys/arch/alpha/tc/tc_3000_300.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/arch/alpha/tc/tc_3000_300.c') 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); -- cgit v1.2.3