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;
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;
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;