Update of /cvsroot/perfparse/_perfparse/cgi
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26547/cgi
Modified Files:
cgi.c
Log Message:
squashed some compiler warnings
Index: cgi.c
===================================================================
RCS file: /cvsroot/perfparse/_perfparse/cgi/cgi.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** cgi.c 12 Aug 2007 00:11:44 -0000 1.4
--- cgi.c 18 Dec 2007 00:03:00 -0000 1.5
***************
*** 88,92 ****
if(sGet!= NULL) strncpy(sQuery,sGet,getLength-1); // do not copy the \0
// get POST data from stdin
! fgets(sQuery+getLength,contentLength+1,stdin);
#ifdef DEBUG
fprintf(df,"GET+POST: %s\n",sQuery);
--- 88,93 ----
if(sGet!= NULL) strncpy(sQuery,sGet,getLength-1); // do not copy the \0
// get POST data from stdin
! // todo: compiler warns here. We should not rely on content length
! fgets(sQuery+getLength,contentLength+1,stdin);
#ifdef DEBUG
fprintf(df,"GET+POST: %s\n",sQuery);
|