From 05e9264a61165bfeee1a7f03e31c1b7cbefbefd4 Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Sat, 10 Oct 2020 14:44:00 +0100 Subject: [PATCH] setproctitle compat requires envp, not environ The two could be different! envp is NOT C or POSIX standard, but does appear to be a UNIX standard. --- src/dhcpcd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dhcpcd.c b/src/dhcpcd.c index 8220219d..82559933 100644 --- a/src/dhcpcd.c +++ b/src/dhcpcd.c @@ -1767,7 +1767,7 @@ dhcpcd_stderr_cb(void *arg) } int -main(int argc, char **argv) +main(int argc, char **argv, char **envp) { struct dhcpcd_ctx ctx; struct ifaddrs *ifaddrs = NULL; @@ -1788,7 +1788,7 @@ main(int argc, char **argv) #endif #ifdef SETPROCTITLE_H - setproctitle_init(argc, argv, environ); + setproctitle_init(argc, argv, envp); #endif /* Test for --help and --version */ -- 2.47.3