summaryrefslogtreecommitdiff
path: root/sys/kern
diff options
context:
space:
mode:
authorThordur I. Bjornsson <thib@cvs.openbsd.org>2009-01-04 00:28:43 +0000
committerThordur I. Bjornsson <thib@cvs.openbsd.org>2009-01-04 00:28:43 +0000
commit40a5535f8935f28641c54bc1be8601c57346cad6 (patch)
treec6cadcc6f0382f6ac66b364de7f97faa179d65e7 /sys/kern
parent492f8bca4088a935cb137b863405cf1d923b9de2 (diff)
properly terminate fake argument list.
From NetBSD; OK deraadt@
Diffstat (limited to 'sys/kern')
-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 50b19421943..5678bab6590 100644
--- a/sys/kern/kern_exec.c
+++ b/sys/kern/kern_exec.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_exec.c,v 1.108 2008/10/31 17:17:00 deraadt Exp $ */
+/* $OpenBSD: kern_exec.c,v 1.109 2009/01/04 00:28:42 thib Exp $ */
/* $NetBSD: kern_exec.c,v 1.75 1996/02/09 18:59:28 christos Exp $ */
/*-
@@ -329,7 +329,7 @@ sys_execve(struct proc *p, void *v, register_t *retval)
cp = *tmpfap;
while (*cp)
*dp++ = *cp++;
- dp++;
+ *dp++ = '\0';
free(*tmpfap, M_EXEC);
tmpfap++; argc++;