Cast the terminating NULL to char * in the execl() call.

Submitted by:	Stefan Farfeleder <stefan@fafoe.narf.at>
This commit is contained in:
Maxime Henrion 2004-04-04 20:53:23 +00:00
parent 46aeebec57
commit dfd6a083db
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=127864

View File

@ -498,7 +498,7 @@ doit(struct sockaddr *fromp)
syslog(LOG_INFO|LOG_AUTH, "%s@%s as %s: cmd='%.80s'",
ruser, rhost, luser, cmdbuf);
}
execl(pwd->pw_shell, cp, "-c", cmdbuf, NULL);
execl(pwd->pw_shell, cp, "-c", cmdbuf, (char *)NULL);
err(1, "%s", pwd->pw_shell);
exit(1);
}