From aadb283e021f9f3e50bcd7e2f35aa1109dd08149 Mon Sep 17 00:00:00 2001 From: Bill Stoddard Date: Tue, 15 Jan 2002 17:27:32 +0000 Subject: [PATCH] This patch fixes my previous change for argument passing, put in place to support rotatelogs. It only affects TPF. I was stupidly displacing past the end of the "args" array while setting up to fork to rotatelogs (or a CGI). Submitted by: David McCreedy git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/1.3.x@92856 13f79535-47bb-0310-9956-ffa450edef68 --- src/os/tpf/os.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/os/tpf/os.c b/src/os/tpf/os.c index c951aa6b9f6..e8af1031bdd 100644 --- a/src/os/tpf/os.c +++ b/src/os/tpf/os.c @@ -273,11 +273,11 @@ int ap_tpf_spawn_child(pool *p, int (*func) (void *, child_info *), /* use a copy of cld->filename because strtok is destructive */ arguments = ap_pstrdup(p, cld->filename); args[0] = strtok(arguments, WHITE); - args[MAXARGC + 1] = NULL; for (i = 0; i < MAXARGC && args[i] ; i++) { args[i + 1] = strtok(NULL, WHITE); } + args[MAXARGC] = NULL; if ((pid = tpf_fork(&fork_input, (const char **)args, -- 2.47.2