diff options
| author | 2010-11-11 17:58:21 +0000 | |
|---|---|---|
| committer | 2010-11-11 17:58:21 +0000 | |
| commit | ec13f893aca91e310d8cbdb7597ceae2252dfbd2 (patch) | |
| tree | 5b650dbdb07963fba467a6f0dcd2c3d5cd71a2de /sys/arch/sparc | |
| parent | Compute syhcnronous transfer periods with a better accuracy, to get better (diff) | |
| download | wireguard-openbsd-ec13f893aca91e310d8cbdb7597ceae2252dfbd2.tar.xz wireguard-openbsd-ec13f893aca91e310d8cbdb7597ceae2252dfbd2.zip | |
Replace snprintf(foo, sizeof foo, "%s", ...) with strlcpy. ok deraadt@ krw@
Diffstat (limited to 'sys/arch/sparc')
| -rw-r--r-- | sys/arch/sparc/sparc/cpu.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/sparc/sparc/cpu.c b/sys/arch/sparc/sparc/cpu.c index 983cccd6e69..628ab52cda2 100644 --- a/sys/arch/sparc/sparc/cpu.c +++ b/sys/arch/sparc/sparc/cpu.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cpu.c,v 1.47 2010/07/10 19:32:24 miod Exp $ */ +/* $OpenBSD: cpu.c,v 1.48 2010/11/11 17:58:23 miod Exp $ */ /* $NetBSD: cpu.c,v 1.56 1997/09/15 20:52:36 pk Exp $ */ /* @@ -741,8 +741,8 @@ sun4_hotfix(sc) { if ((sc->flags & CPUFLG_SUN4CACHEBUG) != 0) { kvm_uncache((caddr_t)trapbase, 1); - snprintf(cpu_hotfix, sizeof cpu_hotfix, - "cache chip bug - trap page uncached"); + strlcpy(cpu_hotfix, "cache chip bug - trap page uncached", + sizeof cpu_hotfix); } } |
