[Olsr-cvs] olsrd-current/lib/httpinfo/src olsrd_httpinfo.c, 1.66, 1.67

Bernd Petrovitsch (spam-protected)
Thu May 17 13:25:29 CEST 2007


Update of /cvsroot/olsrd/olsrd-current/lib/httpinfo/src
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv24791/lib/httpinfo/src

Modified Files:
	olsrd_httpinfo.c 
Log Message:
* made the html buffer larger - this is only a short term work around
* cleanup: use parentheres in macros
* cleanup: use sizeof()


Index: olsrd_httpinfo.c
===================================================================
RCS file: /cvsroot/olsrd/olsrd-current/lib/httpinfo/src/olsrd_httpinfo.c,v
retrieving revision 1.66
retrieving revision 1.67
diff -C2 -d -r1.66 -r1.67
*** olsrd_httpinfo.c	9 May 2007 17:37:09 -0000	1.66
--- olsrd_httpinfo.c	17 May 2007 11:25:27 -0000	1.67
***************
*** 90,98 ****
  #define MAX_CLIENTS 3
  
! #define MAX_HTTPREQ_SIZE 1024 * 10
  
  #define DEFAULT_TCP_PORT 1978
  
! #define HTML_BUFSIZE 1024*75
  
  #define FRAMEWIDTH 800
--- 90,98 ----
  #define MAX_CLIENTS 3
  
! #define MAX_HTTPREQ_SIZE (1024 * 10)
  
  #define DEFAULT_TCP_PORT 1978
  
! #define HTML_BUFSIZE (1024 * 200)
  
  #define FRAMEWIDTH 800
***************
*** 413,417 ****
  	      
  	      //memcpy(body, dynamic_files[i].data, static_bin_files[i].data_size);
! 	      size += dynamic_files[i].process_data_cb(req, param_size, &body[size], HTML_BUFSIZE-size);
  	      c = build_http_header(HTTP_OK, OLSR_TRUE, size, req, MAX_HTTPREQ_SIZE);  
  	      goto send_http_data;
--- 413,417 ----
  	      
  	      //memcpy(body, dynamic_files[i].data, static_bin_files[i].data_size);
! 	      size += dynamic_files[i].process_data_cb(req, param_size, &body[size], sizeof(body)-size);
  	      c = build_http_header(HTTP_OK, OLSR_TRUE, size, req, MAX_HTTPREQ_SIZE);  
  	      goto send_http_data;





More information about the Olsr-cvs mailing list