You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by br...@apache.org on 2001/12/02 10:51:19 UTC

cvs commit: httpd-2.0/server util_script.c protocol.c

brianp      01/12/02 01:51:19

  Modified:    server   util_script.c protocol.c
  Log:
  Optimization: changed some apr_pstrndup calls to apr_pstrmemdup
  
  Revision  Changes    Path
  1.70      +1 -1      httpd-2.0/server/util_script.c
  
  Index: util_script.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/server/util_script.c,v
  retrieving revision 1.69
  retrieving revision 1.70
  diff -u -r1.69 -r1.70
  --- util_script.c	2001/11/24 04:22:45	1.69
  +++ util_script.c	2001/12/02 09:51:19	1.70
  @@ -356,7 +356,7 @@
   	++last;			/* end at next whitespace */
       }
   
  -    return apr_pstrndup(r->pool, first, last - first);
  +    return apr_pstrmemdup(r->pool, first, last - first);
   }
   
   AP_DECLARE(void) ap_add_cgi_vars(request_rec *r)
  
  
  
  1.56      +1 -1      httpd-2.0/server/protocol.c
  
  Index: protocol.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/server/protocol.c,v
  retrieving revision 1.55
  retrieving revision 1.56
  diff -u -r1.55 -r1.56
  --- protocol.c	2001/11/28 02:09:46	1.55
  +++ protocol.c	2001/12/02 09:51:19	1.56
  @@ -453,7 +453,7 @@
           pro = "HTTP/0.9";
           len = 8;
       }
  -    r->protocol = apr_pstrndup(r->pool, pro, len);
  +    r->protocol = apr_pstrmemdup(r->pool, pro, len);
   
       /* XXX ap_update_connection_status(conn->id, "Protocol", r->protocol); */