summaryrefslogtreecommitdiff
path: root/sys/src/cmd/mothra
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2014-02-05 19:25:24 +0100
committercinap_lenrek <cinap_lenrek@felloff.net>2014-02-05 19:25:24 +0100
commitc76243e7e59ffdbcc1a7785f2ca6237128569919 (patch)
tree0e0f763276a21022cf5a7e7d96cd05598baa4402 /sys/src/cmd/mothra
parent492958f08e2e9573679973cdd8119b95a57f8889 (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.c2
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);