mirror of
https://github.com/curl/curl.git
synced 2026-08-26 09:43:32 +03:00
renamed the strtoofft() macro to curlx_strtoofft() to adjust to the curlx_*
concept, and added lib/README.curlx to explain details about it
This commit is contained in:
parent
f052cbee19
commit
cf1f46e1ca
6 changed files with 62 additions and 19 deletions
|
|
@ -651,7 +651,7 @@ CURLcode Curl_readwrite(struct connectdata *conn,
|
|||
info about the true size of the document we didn't get now. */
|
||||
if ((k->httpcode != 416) &&
|
||||
checkprefix("Content-Length:", k->p)) {
|
||||
contentlength = strtoofft(k->p+15, NULL, 10);
|
||||
contentlength = curlx_strtoofft(k->p+15, NULL, 10);
|
||||
if (data->set.max_filesize && contentlength >
|
||||
data->set.max_filesize) {
|
||||
failf(data, "Maximum file size exceeded");
|
||||
|
|
@ -784,7 +784,7 @@ CURLcode Curl_readwrite(struct connectdata *conn,
|
|||
/* stupid colon skip */
|
||||
ptr++;
|
||||
|
||||
k->offset = strtoofft(ptr, NULL, 10);
|
||||
k->offset = curlx_strtoofft(ptr, NULL, 10);
|
||||
|
||||
if (conn->resume_from == k->offset)
|
||||
/* we asked for a resume and we got it */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue