summaryrefslogtreecommitdiff
path: root/sys/arch/macppc
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2010-11-11 17:58:24 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2010-11-11 17:58:24 +0000
commit4f8f33d4754fe7616e7e679753278d8f067b4a7f (patch)
tree38f637749f99436a692ab996861c50f553855ac8 /sys/arch/macppc
parentbce39a0192683b0360f8d3e08beb164c2de4be2f (diff)
Replace snprintf(foo, sizeof foo, "%s", ...) with strlcpy. ok deraadt@ krw@
Diffstat (limited to 'sys/arch/macppc')
-rw-r--r--sys/arch/macppc/macppc/autoconf.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/macppc/macppc/autoconf.c b/sys/arch/macppc/macppc/autoconf.c
index cd083d973bb..238fc7752ce 100644
--- a/sys/arch/macppc/macppc/autoconf.c
+++ b/sys/arch/macppc/macppc/autoconf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: autoconf.c,v 1.38 2009/10/01 20:19:18 kettenis Exp $ */
+/* $OpenBSD: autoconf.c,v 1.39 2010/11/11 17:58:21 miod Exp $ */
/*
* Copyright (c) 1996, 1997 Per Fogelstrom
* Copyright (c) 1995 Theo de Raadt
@@ -37,7 +37,7 @@
* from: Utah Hdr: autoconf.c 1.31 91/01/21
*
* from: @(#)autoconf.c 8.1 (Berkeley) 6/10/93
- * $Id: autoconf.c,v 1.38 2009/10/01 20:19:18 kettenis Exp $
+ * $Id: autoconf.c,v 1.39 2010/11/11 17:58:21 miod Exp $
*/
/*
@@ -184,7 +184,7 @@ makebootdev(char *bp)
} while((dp->type & T_IFACE) == 0);
if (dp->att && dp->type == T_IFACE) {
- snprintf(bootdev, sizeof bootdev, "%s", dp->dev);
+ strlcpy(bootdev, dp->dev, sizeof bootdev);
return;
}
dev = dp->dev;