summaryrefslogtreecommitdiffstats
path: root/sys/kern/subr_autoconf.c
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2003-05-03 21:14:59 +0000
committerderaadt <deraadt@openbsd.org>2003-05-03 21:14:59 +0000
commit9e7a7754b2b7036f58367102a682ade4e73618ba (patch)
tree3fcbbd66a98225361500acc2e47258e7b63b6f2c /sys/kern/subr_autoconf.c
parentalso had too many arguments to .Nd; shortened to read the same (the (diff)
downloadwireguard-openbsd-9e7a7754b2b7036f58367102a682ade4e73618ba.tar.xz
wireguard-openbsd-9e7a7754b2b7036f58367102a682ade4e73618ba.zip
string fixes; tedu ok
Diffstat (limited to 'sys/kern/subr_autoconf.c')
-rw-r--r--sys/kern/subr_autoconf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/subr_autoconf.c b/sys/kern/subr_autoconf.c
index 1ad221818b5..9cfacee759a 100644
--- a/sys/kern/subr_autoconf.c
+++ b/sys/kern/subr_autoconf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: subr_autoconf.c,v 1.34 2003/04/19 19:08:53 krw Exp $ */
+/* $OpenBSD: subr_autoconf.c,v 1.35 2003/05/03 21:14:59 deraadt Exp $ */
/* $NetBSD: subr_autoconf.c,v 1.21 1996/04/04 06:06:18 cgd Exp $ */
/*
@@ -848,6 +848,6 @@ evcnt_attach(dev, name, ev)
/* ev->ev_next = NULL; */
ev->ev_dev = dev;
/* ev->ev_count = 0; */
- strcpy(ev->ev_name, name);
+ strlcpy(ev->ev_name, name, sizeof ev->ev_name);
TAILQ_INSERT_TAIL(&allevents, ev, ev_list);
}