From 607ced2a9825cfbbaa96cea1eeeb0ffa4c3a73a9 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Sat, 10 May 2003 21:11:15 +0000 Subject: string cleaning; ok beck dhartmei --- sys/arch/sparc64/dev/pci_machdep.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/arch/sparc64/dev') diff --git a/sys/arch/sparc64/dev/pci_machdep.c b/sys/arch/sparc64/dev/pci_machdep.c index 2b2088390b3..8e48222337e 100644 --- a/sys/arch/sparc64/dev/pci_machdep.c +++ b/sys/arch/sparc64/dev/pci_machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pci_machdep.c,v 1.11 2003/02/17 01:29:20 henric Exp $ */ +/* $OpenBSD: pci_machdep.c,v 1.12 2003/05/10 21:11:14 deraadt Exp $ */ /* $NetBSD: pci_machdep.c,v 1.22 2001/07/20 00:07:13 eeh Exp $ */ /* @@ -426,7 +426,7 @@ pci_intr_string(pc, ih) static char str[16]; DPRINTF(SPDB_INTR, ("pci_intr_string: ih %u", ih)); - sprintf(str, "ivec %x", ih); + snprintf(str, sizeof str, "ivec %x", ih); DPRINTF(SPDB_INTR, ("; returning %s\n", str)); return (str); -- cgit v1.2.3