summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_exec.c
diff options
context:
space:
mode:
authortedu <tedu@openbsd.org>2014-01-21 01:48:44 +0000
committertedu <tedu@openbsd.org>2014-01-21 01:48:44 +0000
commit91ba896db697da68a85cad0ccf0e596c2e766af5 (patch)
tree239fb63a3973e6123aad5b4c47ed9a2cc65139b8 /sys/kern/kern_exec.c
parentnaughty guenther didn't compile (diff)
downloadwireguard-openbsd-91ba896db697da68a85cad0ccf0e596c2e766af5.tar.xz
wireguard-openbsd-91ba896db697da68a85cad0ccf0e596c2e766af5.zip
bzero -> memset
Diffstat (limited to 'sys/kern/kern_exec.c')
-rw-r--r--sys/kern/kern_exec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/kern_exec.c b/sys/kern/kern_exec.c
index 4c1bed189b2..68b237ef786 100644
--- a/sys/kern/kern_exec.c
+++ b/sys/kern/kern_exec.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_exec.c,v 1.136 2014/01/20 03:23:42 guenther Exp $ */
+/* $OpenBSD: kern_exec.c,v 1.137 2014/01/21 01:48:44 tedu Exp $ */
/* $NetBSD: kern_exec.c,v 1.75 1996/02/09 18:59:28 christos Exp $ */
/*-
@@ -472,7 +472,7 @@ sys_execve(struct proc *p, void *v, register_t *retval)
TCB_SET(p, NULL); /* reset the TCB address */
/* set command name & other accounting info */
- bzero(p->p_comm, sizeof(p->p_comm));
+ memset(p->p_comm, 0, sizeof(p->p_comm));
len = min(nid.ni_cnd.cn_namelen, MAXCOMLEN);
bcopy(nid.ni_cnd.cn_nameptr, p->p_comm, len);
pr->ps_acflag &= ~AFORK;