httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From b..@hyperreal.org
Subject cvs commit: apache-1.3/src/main http_protocol.c
Date Sun, 09 Aug 1998 12:36:33 GMT
ben         98/08/09 05:36:33

  Modified:    src/main http_protocol.c
  Log:
  Exchange completely non-standard C that doesn't work for most C compilers for
  somewhat non-standard call (alloca) that probably does.
  
  Revision  Changes    Path
  1.231     +2 -2      apache-1.3/src/main/http_protocol.c
  
  Index: http_protocol.c
  ===================================================================
  RCS file: /export/home/cvs/apache-1.3/src/main/http_protocol.c,v
  retrieving revision 1.230
  retrieving revision 1.231
  diff -u -r1.230 -r1.231
  --- http_protocol.c	1998/08/09 06:37:17	1.230
  +++ http_protocol.c	1998/08/09 12:36:32	1.231
  @@ -626,7 +626,7 @@
   
   static int read_request_line(request_rec *r)
   {
  -    char l[r->server->limit_req_line + 2];
  +    char *l=alloca(r->server->limit_req_line + 2);
       const char *ll = l, *uri;
       conn_rec *conn = r->connection;
       int major = 1, minor = 0;   /* Assume HTTP/1.0 if non-"HTTP" protocol */
  @@ -714,7 +714,7 @@
       char *value, *copy;
       int len;
       unsigned int fields_read = 0;
  -    char field[r->server->limit_req_fieldsize + 2];
  +    char *field=alloca(r->server->limit_req_fieldsize + 2);
   
       /*
        * Read header lines until we get the empty separator line, a read error,
  
  
  

Mime
View raw message