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/vnc/wsys.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/vnc/wsys.c')
-rw-r--r-- | sys/src/cmd/vnc/wsys.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/src/cmd/vnc/wsys.c b/sys/src/cmd/vnc/wsys.c index 08e0e1946..9e5c1cd0a 100644 --- a/sys/src/cmd/vnc/wsys.c +++ b/sys/src/cmd/vnc/wsys.c @@ -195,8 +195,8 @@ tcs(int fd0, int fd1) } close(pfd[0]); close(pfd[1]); - execl("/bin/tcs", "tcs", fd0 < 0 ? "-f" : "-t", charset, 0); - execl("/bin/cat", "cat", 0); + execl("/bin/tcs", "tcs", fd0 < 0 ? "-f" : "-t", charset, nil); + execl("/bin/cat", "cat", nil); _exits(0); } close(pfd[0]); |