memory malloc() in cgi gateway incorrect
Brought to you by:
acc2
two related problems, in resource.c:
(approx) line 717:
if( (i == 0) && (chQuery != NULL) ) size = strlen(chQuery);
should be:
f( (i == 0) && (chQuery != NULL) ) size =
strlen(chQuery) + 20; /* +20 for 'QUERY_STRING='
prepended below */
i.e. space needs to be allocated for the "QUERY_STRING="