summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2003-04-04 00:43:18 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2003-04-04 00:43:18 +0000
commitb815b715bae7cf4be83c7de91503359dea5f400c (patch)
tree00a68e48b8ee4720a62c5dc01eb5819d112165fb /usr.sbin
parentdaf329b1c0f01bbdd4028168949c69860a248f9e (diff)
strlcpy; tedu ok
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/amd/amd/host_ops.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/amd/amd/host_ops.c b/usr.sbin/amd/amd/host_ops.c
index 0ae1437ee31..006846719b1 100644
--- a/usr.sbin/amd/amd/host_ops.c
+++ b/usr.sbin/amd/amd/host_ops.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: host_ops.c,v 1.10 2002/08/05 07:24:26 pvalchev Exp $ */
+/* $OpenBSD: host_ops.c,v 1.11 2003/04/04 00:43:17 deraadt Exp $ */
/*
* Copyright (c) 1990 Jan-Simon Pendry
@@ -72,7 +72,7 @@
*/
#define MAKE_MNTPT(mntpt, ex, mf) { \
if (strcmp((ex)->ex_dir, "/") == 0) \
- strcpy((mntpt), (mf)->mf_mount); \
+ strlcpy((mntpt), (mf)->mf_mount, sizeof((mntpt))); \
else \
snprintf((mntpt), sizeof(mntpt), "%s%s", (mf)->mf_mount, (ex)->ex_dir); \
}