input/curl: format Range offset as unsigned

This commit is contained in:
Max Kellermann 2017-02-21 12:06:03 +01:00
parent 1d445d1039
commit a8e76fb345

View File

@ -400,7 +400,7 @@ CurlInputStream::SeekInternal(offset_type new_offset)
/* send the "Range" header */
if (offset > 0) {
sprintf(range, "%lld-", (long long)offset);
sprintf(range, "%llu-", (unsigned long long)offset);
request->SetOption(CURLOPT_RANGE, range);
}
}