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
/* 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,