Update of /cvsroot/perfparse/_perfparse/cgi
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13639/cgi
Modified Files:
perfchart.c
Log Message:
host name can have 100 Chars now.
Index: perfchart.c
===================================================================
RCS file: /cvsroot/perfparse/_perfparse/cgi/perfchart.c,v
retrieving revision 1.14
retrieving revision 1.15
diff -C2 -d -r1.14 -r1.15
*** perfchart.c 12 Aug 2007 00:17:27 -0000 1.14
--- perfchart.c 25 Aug 2007 00:09:14 -0000 1.15
***************
*** 71,75 ****
/* CGI in */
! char sHost[76]="";
char sService[76]="";
char sMetric[76]="";
--- 71,75 ----
/* CGI in */
! char sHost[101]="";
char sService[76]="";
char sMetric[76]="";
***************
*** 370,374 ****
for (currentRow = 0; currentRow<numberOfRows; currentRow++){
#endif
! strncpy(sHost,sData(0),76);
strncpy(sService,sData(1),76);
strncpy(sMetric,sData(2),76);
--- 370,374 ----
for (currentRow = 0; currentRow<numberOfRows; currentRow++){
#endif
! strncpy(sHost,sData(0),101);
strncpy(sService,sData(1),76);
strncpy(sMetric,sData(2),76);
|