httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From traw...@locus.apache.org
Subject cvs commit: apache-2.0/src/main http_core.c
Date Tue, 29 Aug 2000 20:21:31 GMT
trawick     00/08/29 13:21:31

  Modified:    src/main http_core.c
  Log:
  Stop using strlen() for the size of an array.  It isn't valid C
  (though gcc was happy with it).
  
  Revision  Changes    Path
  1.108     +1 -1      apache-2.0/src/main/http_core.c
  
  Index: http_core.c
  ===================================================================
  RCS file: /home/cvs/apache-2.0/src/main/http_core.c,v
  retrieving revision 1.107
  retrieving revision 1.108
  diff -u -r1.107 -r1.108
  --- http_core.c	2000/08/28 20:36:42	1.107
  +++ http_core.c	2000/08/29 20:21:30	1.108
  @@ -2923,7 +2923,7 @@
   {
       ap_bucket *dptr = b->head, *lb, *next, *tail;
       int len = 0, cur_len;
  -    char lenstr[strlen("ffffffff\r\n") + 1];
  +    char lenstr[sizeof("ffffffff\r\n")];
       const char *cur_str;
       int hit_eos = 0;
       apr_status_t rv = 0; /* currently bytes written, will be APR_* */
  
  
  

Mime
View raw message