mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-01 19:42:48 -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:
@ -813,7 +813,7 @@ static const char *pty_init(void *frontend, void **backend_handle, Config *cfg,
|
||||
sprintf(shellname, "-%s", p);
|
||||
} else
|
||||
shellname = shell;
|
||||
execl(getenv("SHELL"), shellname, NULL);
|
||||
execl(getenv("SHELL"), shellname, (void *)NULL);
|
||||
}
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user