httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From traw...@apache.org
Subject cvs commit: httpd-2.0/server protocol.c
Date Sat, 12 Jul 2003 13:03:40 GMT
trawick     2003/07/12 06:03:40

  Modified:    server   protocol.c
  Log:
  minor style changes
  
  Revision  Changes    Path
  1.135     +9 -7      httpd-2.0/server/protocol.c
  
  Index: protocol.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/server/protocol.c,v
  retrieving revision 1.134
  retrieving revision 1.135
  diff -u -r1.134 -r1.135
  --- protocol.c	11 Jul 2003 11:00:38 -0000	1.134
  +++ protocol.c	12 Jul 2003 13:03:39 -0000	1.135
  @@ -788,18 +788,20 @@
                   }
   
                   *value = '\0';
  -                tmp_field = value;  /*Used to trim the whitespace between key */
  -                ++value;            /*     token and seperator*/
  +                tmp_field = value;  /* used to trim the whitespace between key
  +                                     * token and separator
  +                                     */
  +                ++value;
                   while (*value == ' ' || *value == '\t') {
                       ++value;            /* Skip to start of value   */
                   }
   
                   /* This check is to avoid any invalid memory reference while
  -                 *   traversing backwards in the key. To avoid a case where
  -                 *   the header starts with ':' (or with just some white
  -                 *   space and the ':') followed by the value
  -		         */
  -                if(tmp_field > last_field) {
  +                 * traversing backwards in the key. To avoid a case where
  +                 * the header starts with ':' (or with just some white
  +                 * space and the ':') followed by the value
  +                 */
  +                if (tmp_field > last_field) {
                       --tmp_field;
                       while ((tmp_field > last_field) &&
                              (*tmp_field == ' ' || *tmp_field == '\t')) {
  
  
  

Mime
View raw message