mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-04 21:12:47 -05:00
NULL needs to be cast to void * when passed to a variadic function like
execl(). Spotted by Damien Miller. [originally from svn r5592]
This commit is contained in:
@ -281,7 +281,7 @@ Socket platform_new_connection(SockAddr addr, char *hostname,
|
||||
close(i);
|
||||
fcntl(0, F_SETFD, 0);
|
||||
fcntl(1, F_SETFD, 0);
|
||||
execl("/bin/sh", "sh", "-c", cmd, NULL);
|
||||
execl("/bin/sh", "sh", "-c", cmd, (void *)NULL);
|
||||
_exit(255);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user