diff options
author | Joe Orton <jorton@apache.org> | 2018-11-09 17:02:21 +0100 |
---|---|---|
committer | Joe Orton <jorton@apache.org> | 2018-11-09 17:02:21 +0100 |
commit | 8122b2a79d34fbe5dc54de22bf35a3eadc78fd82 (patch) | |
tree | eef2d724132f4ed88a816bbb8e59da33831eabbd /support | |
parent | mod_http2: version bump, slave connections cleanup strategy changed (diff) | |
download | apache2-8122b2a79d34fbe5dc54de22bf35a3eadc78fd82.tar.xz apache2-8122b2a79d34fbe5dc54de22bf35a3eadc78fd82.zip |
* support/suexec.c (clean_env): Avoid use of sprintf; no functional change.
PR: 33207
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1846253 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to '')
-rw-r--r-- | support/suexec.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/support/suexec.c b/support/suexec.c index 22ef8462e2..55c001a5c0 100644 --- a/support/suexec.c +++ b/support/suexec.c @@ -223,7 +223,6 @@ static void log_no_err(const char *fmt,...) static void clean_env(void) { - char pathbuf[512]; char **cleanenv; char **ep; int cidx = 0; @@ -245,8 +244,7 @@ static void clean_env(void) exit(123); } - sprintf(pathbuf, "PATH=%s", AP_SAFE_PATH); - cleanenv[cidx] = strdup(pathbuf); + cleanenv[cidx] = strdup("PATH=" AP_SAFE_PATH); if (cleanenv[cidx] == NULL) { log_err("failed to malloc memory for environment\n"); exit(124); |