summaryrefslogtreecommitdiff
path: root/sys/arch/mvme88k
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2003-05-11 19:41:13 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2003-05-11 19:41:13 +0000
commitd6d7c738346239a3c708dc0978911e106ff464ef (patch)
treebc43e8e3f9316ebb64d8b2b82353eeccf749cf26 /sys/arch/mvme88k
parent0b07ddfee5e2e357a1085b59936307292adeacfe (diff)
string cleaning; krw ok
Diffstat (limited to 'sys/arch/mvme88k')
-rw-r--r--sys/arch/mvme88k/mvme88k/machdep.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/arch/mvme88k/mvme88k/machdep.c b/sys/arch/mvme88k/mvme88k/machdep.c
index 399df42ddbc..8e37ce4f836 100644
--- a/sys/arch/mvme88k/mvme88k/machdep.c
+++ b/sys/arch/mvme88k/mvme88k/machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: machdep.c,v 1.100 2003/01/13 20:12:18 miod Exp $ */
+/* $OpenBSD: machdep.c,v 1.101 2003/05/11 19:41:11 deraadt Exp $ */
/*
* Copyright (c) 1998, 1999, 2000, 2001 Steve Murphree, Jr.
* Copyright (c) 1996 Nivas Madhur
@@ -418,7 +418,8 @@ void
identifycpu()
{
cpuspeed = getcpuspeed();
- sprintf(cpu_model, "Motorola MVME%x, %dMHz", brdtyp, cpuspeed);
+ snprintf(cpu_model, sizeof cpu_model,
+ "Motorola MVME%x, %dMHz", brdtyp, cpuspeed);
printf("\nModel: %s\n", cpu_model);
}