/[monit]/monit/http/processor.c
ViewVC logotype

Diff of /monit/http/processor.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.24 by hauk, Fri Sep 19 04:49:36 2003 UTC revision 1.25 by hauk, Fri Sep 19 22:07:47 2003 UTC
# Line 224  void send_redirect(HttpResponse res, con Line 224  void send_redirect(HttpResponse res, con
224   */   */
225  void out_print(HttpResponse res, const char *m, ...) {  void out_print(HttpResponse res, const char *m, ...) {
226    
227    if(format) {    if(m) {
228            
229      char *buf;      char *buf;
230      va_list ap;      va_list ap;
# Line 396  char *get_headers(HttpResponse res) { Line 396  char *get_headers(HttpResponse res) {
396    
397    *buf=0;    *buf=0;
398        
399    for(p= res->headers; p; p= p->next) {    for(p= res->headers; (((b-buf) + STRLEN) < RES_STRLEN) && p; p= p->next) {
400        
401      b+= snprintf(b, STRLEN-(b-buf),"%s: %s\r\n", p->name, p->value);      b+= snprintf(b, STRLEN,"%s: %s\r\n", p->name, p->value);
402            
403    }    }
404        
# Line 807  static int create_parameters(HttpRequest Line 807  static int create_parameters(HttpRequest
807  }  }
808    
809    
   
810  /* ----------------------------------------------------------------- Cleanup */  /* ----------------------------------------------------------------- Cleanup */
811    
812    

Legend:
Removed from v.1.24  
changed lines
  Added in v.1.25

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26