You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by nd...@apache.org on 2004/05/25 20:22:58 UTC

cvs commit: httpd-2.0/modules/experimental mod_mem_cache.c

nd          2004/05/25 11:22:58

  Modified:    modules/experimental mod_mem_cache.c
  Log:
  parse apr_off_t correctly using new apr_strtoff function
  
  Revision  Changes    Path
  1.109     +2 -4      httpd-2.0/modules/experimental/mod_mem_cache.c
  
  Index: mod_mem_cache.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/modules/experimental/mod_mem_cache.c,v
  retrieving revision 1.108
  retrieving revision 1.109
  diff -u -u -r1.108 -r1.109
  --- mod_mem_cache.c	9 Feb 2004 20:29:18 -0000	1.108
  +++ mod_mem_cache.c	25 May 2004 18:22:58 -0000	1.109
  @@ -1164,13 +1164,11 @@
   static const char *set_max_streaming_buffer(cmd_parms *parms, void *dummy,
                                               const char *arg)
   {
  -    apr_off_t val;
       char *err;
  -    val = (apr_off_t)strtol(arg, &err, 10);
  -    if (*err != 0) {
  +    if (apr_strtoff(&sconf->max_streaming_buffer_size, arg, &err, 10) || *err) {
           return "MCacheMaxStreamingBuffer value must be a number";
       }
  -    sconf->max_streaming_buffer_size = val;
  +
       return NULL;
   }