Commit 3f9ad2ea authored by 's avatar

Fixed a potential problem caught by an astute guy on the zope list -

when JB took over PCGI the header length changed to 10 (from 9) and
there was a buffer with a hard-coded length of 10. The buffer is now
sized to HDRLEN + 1.
parent 2d389954
......@@ -55,7 +55,7 @@ IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
char spewbuf[1024]; /* yes, it's a global, but only for debugging */
#endif
static char _id_[]="$Id: pcgi-wrapper.c,v 1.6 1999/10/28 17:34:56 brian Exp $";
static char _id_[]="$Id: pcgi-wrapper.c,v 1.7 2000/01/31 15:29:37 brian Exp $";
/* Globals, OR: "I'll know I'll hate myself in the morning" */
extern char **environ;
......@@ -70,8 +70,8 @@ int main(int argc, char *argv[])
{ pcgiResource resource;
pcgiResource *r=&resource;
long l =0;
char t[10] ={0};
char *estatus=NULL;
char t[HDRLEN+1]={0};
char *estatus =NULL;
char *emsg =NULL;
char *p =NULL;
char **env;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment