From 5b2f4b9dfb4270f6e4bcf268aa2dbccae4813221 Mon Sep 17 00:00:00 2001 From: Stefan Fritsch Date: Sat, 27 Aug 2011 18:58:43 +0000 Subject: [PATCH] fix typo git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1162419 13f79535-47bb-0310-9956-ffa450edef68 --- modules/http/byterange_filter.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/http/byterange_filter.c b/modules/http/byterange_filter.c index 2e40b97ec4..6965706106 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; -- 2.40.0