You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by st...@apache.org on 2002/01/15 18:27:33 UTC
cvs commit: apache-1.3/src/os/tpf os.c
stoddard 02/01/15 09:27:33
Modified: src/os/tpf os.c
Log:
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
Revision Changes Path
1.14 +1 -1 apache-1.3/src/os/tpf/os.c
Index: os.c
===================================================================
RCS file: /home/cvs/apache-1.3/src/os/tpf/os.c,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -r1.13 -r1.14
--- os.c 26 Dec 2001 17:14:06 -0000 1.13
+++ os.c 15 Jan 2002 17:27:32 -0000 1.14
@@ -273,11 +273,11 @@
/* 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,