Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/kern reverse (and fix) the logic of the other change; it...



details:   https://anonhg.NetBSD.org/src/rev/700c2fb0795c
branches:  trunk
changeset: 480138:700c2fb0795c
user:      mrg <mrg%NetBSD.org@localhost>
date:      Wed Jan 05 08:11:31 2000 +0000

description:
reverse (and fix) the logic of the other change; it cause semi-random alpha SIGABRT for longer command lines

diffstat:

 sys/kern/kern_exec.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (23 lines):

diff -r 2d5eea0f8702 -r 700c2fb0795c sys/kern/kern_exec.c
--- a/sys/kern/kern_exec.c      Wed Jan 05 04:54:54 2000 +0000
+++ b/sys/kern/kern_exec.c      Wed Jan 05 08:11:31 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: kern_exec.c,v 1.105 1999/12/30 15:59:26 eeh Exp $      */
+/*     $NetBSD: kern_exec.c,v 1.106 2000/01/05 08:11:31 mrg Exp $      */
 
 /*-
  * Copyright (C) 1993, 1994, 1996 Christopher G. Demetriou
@@ -346,11 +346,11 @@
 
        /* Now check if args & environ fit into new stack */
        if (pack.ep_flags & EXEC_32)
-               len = ((argc + envc + 2 + pack.ep_emul->e_arglen) * sizeof(char *) +
+               len = ((argc + envc + 2 + pack.ep_emul->e_arglen) * sizeof(int) +
                       sizeof(int) + dp + STACKGAPLEN + szsigcode +
                       sizeof(struct ps_strings)) - argp;
        else
-               len = ((argc + envc + 2 + pack.ep_emul->e_arglen) * sizeof(int) +
+               len = ((argc + envc + 2 + pack.ep_emul->e_arglen) * sizeof(char *) +
                       sizeof(int) + dp + STACKGAPLEN + szsigcode +
                       sizeof(struct ps_strings)) - argp;
 



Home | Main Index | Thread Index | Old Index