httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bill Stoddard" <b...@wstoddard.com>
Subject Re: [PATCH] TPF argument fix in src/os/tpf/os.c
Date Tue, 15 Jan 2002 17:29:38 GMT
Committed.

Bill


> 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).
> 
> -David McCreedy
> McCreedy@us.ibm.com


--------------------------------------------------------------------------------


> 
> 
> diff -ru3 before/src/os/tpf/os.c after/src/os/tpf/os.c
> --- before/src/os/tpf/os.c Mon Jan 14 18:46:47 2002
> +++ after/src/os/tpf/os.c Mon Jan 14 18:47:46 2002
> @@ -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,
> 


Mime
View raw message