summaryrefslogtreecommitdiff
path: root/sys/arch/macppc/pci/mpcpcibus.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2003-05-07 22:33:31 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2003-05-07 22:33:31 +0000
commitdfda182a349d83e11814a7746de80237a8c66e74 (patch)
treefec6e42476ad73c3114ac210a8f30b5a580c38d6 /sys/arch/macppc/pci/mpcpcibus.c
parent14822662bdf25d6ee737555bce42c64f0222b331 (diff)
string cleaning
Diffstat (limited to 'sys/arch/macppc/pci/mpcpcibus.c')
-rw-r--r--sys/arch/macppc/pci/mpcpcibus.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/macppc/pci/mpcpcibus.c b/sys/arch/macppc/pci/mpcpcibus.c
index ed0c47e784e..3a62df909ef 100644
--- a/sys/arch/macppc/pci/mpcpcibus.c
+++ b/sys/arch/macppc/pci/mpcpcibus.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mpcpcibus.c,v 1.18 2003/02/26 21:54:44 drahn Exp $ */
+/* $OpenBSD: mpcpcibus.c,v 1.19 2003/05/07 22:33:30 deraadt Exp $ */
/*
* Copyright (c) 1997 Per Fogelstrom
@@ -979,7 +979,7 @@ mpc_intr_string(lcv, ih)
{
static char str[16];
- sprintf(str, "irq %d", ih);
+ snprintf(str, sizeof str, "irq %d", ih);
return(str);
}