From: Stefan Fritsch Date: Sat, 27 Aug 2011 18:58:43 +0000 (+0000) Subject: fix typo X-Git-Tag: 2.3.15~334 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5b2f4b9dfb4270f6e4bcf268aa2dbccae4813221;p=thirdparty%2Fapache%2Fhttpd.git fix typo git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1162419 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/http/byterange_filter.c b/modules/http/byterange_filter.c index 2e40b97ec48..69657061063 100644 --- a/modules/http/byterange_filter.c +++ b/modules/http/byterange_filter.c @@ -419,7 +419,7 @@ static int ap_set_byterange(request_rec *r, apr_off_t clength, char *cur, **new; apr_array_header_t *merged; int num_ranges = 0; - apr_off_t ostart = 0, oend = 0, sum_lenghts = 0; + apr_off_t ostart = 0, oend = 0, sum_lengths = 0; int in_merge = 0; indexes_t *idx; int overlaps = 0, reversals = 0; @@ -559,7 +559,7 @@ static int ap_set_byterange(request_rec *r, apr_off_t clength, idx = (indexes_t *)apr_array_push(indexes); idx->start = ostart; idx->end = oend; - sum_lenghts += oend - ostart + 1; + sum_lengths += oend - ostart + 1; /* new set again */ in_merge = 1; ostart = start; @@ -575,10 +575,10 @@ static int ap_set_byterange(request_rec *r, apr_off_t clength, idx = (indexes_t *)apr_array_push(indexes); idx->start = ostart; idx->end = oend; - sum_lenghts += oend - ostart + 1; + sum_lengths += oend - ostart + 1; num_ranges++; } - if (sum_lenghts >= clength) { + if (sum_lengths >= clength) { ap_log_rerror(APLOG_MARK, APLOG_TRACE1, 0, r, "Sum of ranges not smaller than file, ignoring."); return 0;