httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s.@apache.org
Subject svn commit: r1162419 - /httpd/httpd/trunk/modules/http/byterange_filter.c
Date Sat, 27 Aug 2011 18:58:44 GMT
Author: sf
Date: Sat Aug 27 18:58:43 2011
New Revision: 1162419

URL: http://svn.apache.org/viewvc?rev=1162419&view=rev
Log:
fix typo

Modified:
    httpd/httpd/trunk/modules/http/byterange_filter.c

Modified: httpd/httpd/trunk/modules/http/byterange_filter.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/http/byterange_filter.c?rev=1162419&r1=1162418&r2=1162419&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/http/byterange_filter.c (original)
+++ httpd/httpd/trunk/modules/http/byterange_filter.c Sat Aug 27 18:58:43 2011
@@ -419,7 +419,7 @@ static int ap_set_byterange(request_rec 
     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 
             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 
         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;



Mime
View raw message