to fail.
Gotta allocate enough space for that NULL string terminator :-)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@92522
13f79535-47bb-0310-9956-
ffa450edef68
Changes with Apache 2.0.30-dev
+ *) Win32: Fix bug that could cause CGI scripts with QUERY_STRINGS
+ to fail. [Bill Stoddard]
*) Change core code to allow an MPM to set hard thread/server
limits at startup. [Jeff Trawick]
const char *cgiprg, const char *cgiargs)
{
apr_array_header_t *args = apr_array_make(p, 8, sizeof(char*));
- char *d = apr_palloc(p, strlen(interp));
+ char *d = apr_palloc(p, strlen(interp)+1);
const char *ch = interp;
const char **arg;
int prgtaken = 0;