diff options
author | Daniel Stenberg <daniel@haxx.se> | 2004-03-02 09:31:18 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2004-03-02 09:31:18 +0000 |
commit | 353f7641193ddf3f6a42d49d53ea994e4ea4388b (patch) | |
tree | 17927ce646b5331cedef8a05b819d5869ad983be /lib/url.c | |
parent | 9f437269fb0b8ccb3311da268e985fea122bc8b8 (diff) |
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'.
Diffstat (limited to 'lib/url.c')
-rw-r--r-- | lib/url.c | 4 |
1 files changed, 2 insertions, 2 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); |