diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2014-02-05 19:25:24 +0100 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2014-02-05 19:25:24 +0100 |
commit | c76243e7e59ffdbcc1a7785f2ca6237128569919 (patch) | |
tree | 0e0f763276a21022cf5a7e7d96cd05598baa4402 /sys/src/cmd/abaco/util.c | |
parent | 492958f08e2e9573679973cdd8119b95a57f8889 (diff) |
fix wrong type for terminating nil argument for execl()
we have to use (void*)0 instead of (int)0 otherwise the
upper bits are uninitialized on amd64.
Diffstat (limited to 'sys/src/cmd/abaco/util.c')
-rw-r--r-- | sys/src/cmd/abaco/util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/src/cmd/abaco/util.c b/sys/src/cmd/abaco/util.c index f2aae8324..9d4fae1b8 100644 --- a/sys/src/cmd/abaco/util.c +++ b/sys/src/cmd/abaco/util.c @@ -676,7 +676,7 @@ execproc(void *v) } if(!procstderr) close(2); - procexecl(e->sync, "/bin/rc", "rc", "-c", e->cmd, 0); + procexecl(e->sync, "/bin/rc", "rc", "-c", e->cmd, nil); error("can't exec"); } |