From 1d9918b99ca4fe723570a37e5f944fe30b473a1b Mon Sep 17 00:00:00 2001 From: mux Date: Sun, 4 Apr 2004 20:53:23 +0000 Subject: Cast the terminating NULL to char * in the execl() call. Submitted by: Stefan Farfeleder --- libexec/rshd/rshd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libexec') diff --git a/libexec/rshd/rshd.c b/libexec/rshd/rshd.c index 7fa68f1..323cb0a 100644 --- a/libexec/rshd/rshd.c +++ b/libexec/rshd/rshd.c @@ -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); } -- cgit v1.1