From d6bc48fe15da4eeeae3bd8f418c3ddf427a48141 Mon Sep 17 00:00:00 2001 From: Ted Unangst Date: Wed, 10 Dec 2014 02:44:48 +0000 Subject: convert bcopy to memcpy. ok millert --- sys/kern/init_main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/kern/init_main.c') diff --git a/sys/kern/init_main.c b/sys/kern/init_main.c index eb6858ce885..d8ac5c6dd08 100644 --- a/sys/kern/init_main.c +++ b/sys/kern/init_main.c @@ -1,4 +1,4 @@ -/* $OpenBSD: init_main.c,v 1.225 2014/11/18 21:11:08 miod Exp $ */ +/* $OpenBSD: init_main.c,v 1.226 2014/12/10 02:44:46 tedu Exp $ */ /* $NetBSD: init_main.c,v 1.84.4.1 1996/06/02 09:08:06 mrg Exp $ */ /* @@ -287,7 +287,7 @@ main(void *framep) p->p_stat = SONPROC; pr->ps_nice = NZERO; pr->ps_emul = &emul_native; - bcopy("swapper", p->p_comm, sizeof ("swapper")); + strlcpy(p->p_comm, "swapper", sizeof(p->p_comm)); /* Init timeouts. */ timeout_set(&p->p_sleep_to, endtsleep, p); -- cgit v1.2.3