]> granicus.if.org Git - apache/commitdiff
parse apr_off_t correctly using new apr_strtoff function
authorAndré Malo <nd@apache.org>
Tue, 25 May 2004 18:22:58 +0000 (18:22 +0000)
committerAndré Malo <nd@apache.org>
Tue, 25 May 2004 18:22:58 +0000 (18:22 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@103764 13f79535-47bb-0310-9956-ffa450edef68

modules/experimental/mod_mem_cache.c

index 637ce169e4f9505615352f71a64e4268467961cf..fa1fdb0f42ab8e0f3e12fb4e87179c103ea5da1b 100644 (file)
@@ -1164,13 +1164,11 @@ static const char
 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;
 }