input/curl: remove obsolete Windows sprintf() fallback
See commit be137a191e
This commit is contained in:
parent
e1ee8e7812
commit
87dfca0477
@ -416,12 +416,7 @@ CurlInputStream::SeekInternal(offset_type new_offset)
|
|||||||
|
|
||||||
if (offset > 0) {
|
if (offset > 0) {
|
||||||
char range[32];
|
char range[32];
|
||||||
#ifdef _WIN32
|
|
||||||
// TODO: what can we use on Windows to format 64 bit?
|
|
||||||
sprintf(range, "%lu-", (long)offset);
|
|
||||||
#else
|
|
||||||
sprintf(range, "%llu-", (unsigned long long)offset);
|
sprintf(range, "%llu-", (unsigned long long)offset);
|
||||||
#endif
|
|
||||||
request->SetOption(CURLOPT_RANGE, range);
|
request->SetOption(CURLOPT_RANGE, range);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user