diff options
author | Ted Unangst <tedu@cvs.openbsd.org> | 2014-12-10 02:44:48 +0000 |
---|---|---|
committer | Ted Unangst <tedu@cvs.openbsd.org> | 2014-12-10 02:44:48 +0000 |
commit | d6bc48fe15da4eeeae3bd8f418c3ddf427a48141 (patch) | |
tree | dddba1757c7433e66458a1f753f070379102c6a0 /sys/kern/init_main.c | |
parent | 6c884b1aea9f49bb410c6f668305ba22d26d27de (diff) |
convert bcopy to memcpy. ok millert
Diffstat (limited to 'sys/kern/init_main.c')
-rw-r--r-- | sys/kern/init_main.c | 4 |
1 files changed, 2 insertions, 2 deletions
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); |