httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From b..@apache.org
Subject cvs commit: httpd-2.0/server config.c
Date Sun, 07 Jan 2001 23:04:16 GMT
ben         01/01/07 15:04:16

  Modified:    server   config.c
  Log:
  Keep Greg happy.
  
  Revision  Changes    Path
  1.96      +6 -6      httpd-2.0/server/config.c
  
  Index: config.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/server/config.c,v
  retrieving revision 1.95
  retrieving revision 1.96
  diff -u -r1.95 -r1.96
  --- config.c	2001/01/07 22:45:26	1.95
  +++ config.c	2001/01/07 23:04:15	1.96
  @@ -280,7 +280,7 @@
   {
       const char *handler;
       const char *p;
  -    size_t handler_len;
  +    char *p2;
       int result;
       char hbuf[MAX_STRING_LEN];
   
  @@ -289,14 +289,14 @@
       }
       else {
           handler = r->content_type ? r->content_type : ap_default_type(r);
  -        if (ap_strchr_c(handler, ';') != NULL) {
  +        if ((p=ap_strchr_c(handler, ';')) != NULL) {
   	    apr_cpystrn(hbuf, handler, sizeof hbuf);
  +	    p2 = hbuf+(handler-p);
   	    handler = hbuf;
  -	    p = ap_strchr_c(handler, ';');
   	    /* MIME type arguments */
  -            while (p > handler && p[-1] == ' ')
  -	        --p;		/* strip trailing spaces */
  -	    *p='\0';
  +            while (p2 > handler && p2[-1] == ' ')
  +	        --p2;		/* strip trailing spaces */
  +	    *p2='\0';
   	}
       }
   
  
  
  

Mime
View raw message