mirror of
https://github.com/curl/curl.git
synced 2026-08-26 04:13:31 +03:00
Yet another curl_off_t printf format attempt, we now exclude the %-letter from
FORMAT_OFF_T to allow additional options to get specified, like with '"%5" FORMAT_OFF_T'.
This commit is contained in:
parent
9f437269fb
commit
353f764119
7 changed files with 38 additions and 34 deletions
|
|
@ -2411,7 +2411,7 @@ static CURLcode CreateConnection(struct SessionHandle *data,
|
|||
if(conn->resume_from) {
|
||||
if(!conn->bits.use_range) {
|
||||
/* if it already was in use, we just skip this */
|
||||
snprintf(resumerange, sizeof(resumerange), FORMAT_OFF_T "-",
|
||||
snprintf(resumerange, sizeof(resumerange), "%" FORMAT_OFF_T "-",
|
||||
conn->resume_from);
|
||||
conn->range=strdup(resumerange); /* tell ourselves to fetch this range */
|
||||
conn->bits.rangestringalloc = TRUE; /* mark as allocated */
|
||||
|
|
@ -2941,7 +2941,7 @@ static CURLcode CreateConnection(struct SessionHandle *data,
|
|||
*/
|
||||
conn->resume_from = data->set.set_resume_from;
|
||||
if (conn->resume_from) {
|
||||
snprintf(resumerange, sizeof(resumerange), FORMAT_OFF_T "-",
|
||||
snprintf(resumerange, sizeof(resumerange), "%" FORMAT_OFF_T "-",
|
||||
conn->resume_from);
|
||||
if (conn->bits.rangestringalloc == TRUE)
|
||||
free(conn->range);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue