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/mothra | |
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/mothra')
-rw-r--r-- | sys/src/cmd/mothra/mothra.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/src/cmd/mothra/mothra.c b/sys/src/cmd/mothra/mothra.c index c15bb4a80..c1faf8ffd 100644 --- a/sys/src/cmd/mothra/mothra.c +++ b/sys/src/cmd/mothra/mothra.c @@ -809,7 +809,7 @@ void filter(int fd, char *cmd){ break; case 0: dupfds(fd, 1, 2, -1); - execl("/bin/rc", "rc", "-c", cmd, 0); + execl("/bin/rc", "rc", "-c", cmd, nil); _exits(0); } close(fd); |