From: André Malo Date: Tue, 25 May 2004 18:22:58 +0000 (+0000) Subject: parse apr_off_t correctly using new apr_strtoff function X-Git-Tag: pre_ajp_proxy~225 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=726c8057b677740bbbf94355b1fd603fd42722a4;p=apache parse apr_off_t correctly using new apr_strtoff function git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@103764 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/experimental/mod_mem_cache.c b/modules/experimental/mod_mem_cache.c index 637ce169e4..fa1fdb0f42 100644 --- a/modules/experimental/mod_mem_cache.c +++ b/modules/experimental/mod_mem_cache.c @@ -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; }