Module Name: src
Committed By: christos
Date: Wed Mar 26 17:45:16 UTC 2014
Modified Files:
src/sys/arch/macppc/macppc: cpu.c
Log Message:
kill sprintf
To generate a diff of this commit:
cvs rdiff -u -r1.59 -r1.60 src/sys/arch/macppc/macppc/cpu.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/macppc/macppc/cpu.c
diff -u src/sys/arch/macppc/macppc/cpu.c:1.59 src/sys/arch/macppc/macppc/cpu.c:1.60
--- src/sys/arch/macppc/macppc/cpu.c:1.59 Sat Oct 27 13:18:00 2012
+++ src/sys/arch/macppc/macppc/cpu.c Wed Mar 26 13:45:16 2014
@@ -1,4 +1,4 @@
-/* $NetBSD: cpu.c,v 1.59 2012/10/27 17:18:00 chs Exp $ */
+/* $NetBSD: cpu.c,v 1.60 2014/03/26 17:45:16 christos Exp $ */
/*-
* Copyright (c) 2001 Tsubai Masanari.
@@ -33,7 +33,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cpu.c,v 1.59 2012/10/27 17:18:00 chs Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cpu.c,v 1.60 2014/03/26 17:45:16 christos Exp $");
#include "opt_ppcparam.h"
#include "opt_multiprocessor.h"
@@ -221,7 +221,7 @@ md_setup_trampoline(volatile struct cpu_
h->hatch_running = -1;
/* see if there's an OF property for the reset register */
- sprintf(cpupath, "/cpus/@%x", ci->ci_cpuid);
+ snprintf(cpupath, sizeof(cpupath), "/cpus/@%x", ci->ci_cpuid);
node = OF_finddevice(cpupath);
if (node == -1) {
printf(": no OF node for CPU %d?\n", ci->ci_cpuid);