summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_exec.c
diff options
context:
space:
mode:
authorart <art@openbsd.org>2001-08-25 20:37:06 +0000
committerart <art@openbsd.org>2001-08-25 20:37:06 +0000
commitd2b5d78f6887d9b33a331729fa7819e5a733782b (patch)
tree5cf39e09201b5e4feaae7c3a7d57a6033889f5f6 /sys/kern/kern_exec.c
parentThis is mvmeppc land, not mvme88k. (diff)
downloadwireguard-openbsd-d2b5d78f6887d9b33a331729fa7819e5a733782b.tar.xz
wireguard-openbsd-d2b5d78f6887d9b33a331729fa7819e5a733782b.zip
It makes more sense to have argc stored as a long on the stack,
not int. Shouldn't affect any archs except sparc64 (now one step closer to a working userland).
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 b49eb939c55..3f978b65554 100644
--- a/sys/kern/kern_exec.c
+++ b/sys/kern/kern_exec.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_exec.c,v 1.55 2001/08/18 03:32:16 art Exp $ */
+/* $OpenBSD: kern_exec.c,v 1.56 2001/08/25 20:37:06 art Exp $ */
/* $NetBSD: kern_exec.c,v 1.75 1996/02/09 18:59:28 christos Exp $ */
/*-
@@ -669,7 +669,7 @@ copyargs(pack, arginfo, stack, argp)
char *dp, *sp;
size_t len;
void *nullp = NULL;
- int argc = arginfo->ps_nargvstr;
+ long argc = arginfo->ps_nargvstr;
int envc = arginfo->ps_nenvstr;
if (copyout(&argc, cpp++, sizeof(argc)))