*dash = *slash = '\0';
- *range_start = apr_atoll(range + 6);
- *range_end = apr_atoll(dash + 1);
+ *range_start = apr_atoi64(range + 6);
+ *range_end = apr_atoi64(dash + 1);
if (*range_end < *range_start
- || (slash[1] != '*' && apr_atoll(slash + 1) <= *range_end)) {
+ || (slash[1] != '*' && apr_atoi64(slash + 1) <= *range_end)) {
/* invalid range. ignore it (per S14.16 of RFC2616) */
return 0;
}
return HTTP_BAD_REQUEST;
}
- r->remaining = apr_atoll(lenp);
+ r->remaining = apr_atoi64(lenp);
}
if (r->read_chunked || r->remaining > 0) {
if ((dash == range)) {
/* In the form "-5" */
- *start = clength - apr_atoll(dash + 1);
+ *start = clength - apr_atoi64(dash + 1);
*end = clength - 1;
}
else {
*dash = '\0';
dash++;
- *start = apr_atoll(range);
+ *start = apr_atoi64(range);
if (*dash) {
- *end = apr_atoll(dash);
+ *end = apr_atoi64(dash);
}
else { /* "5-" */
*end = clength - 1;
has_content = 1;
}
else if (!strncmp(buffer, "content-length:", 15)) {
- mime_info.bytes = apr_atoll((char *)body);
+ mime_info.bytes = apr_atoi64((char *)body);
has_content = 1;
}
else if (!strncmp(buffer, "content-language:", 17)) {