From: Bill Stoddard Date: Tue, 15 Jan 2002 17:27:32 +0000 (+0000) Subject: This patch fixes my previous change for argument passing, put in place X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aadb283e021f9f3e50bcd7e2f35aa1109dd08149;p=thirdparty%2Fapache%2Fhttpd.git 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 --- 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,