input/curl: format Range offset as unsigned

This commit is contained in:
Max Kellermann 2017-02-21 12:06:03 +01:00
parent e22a4fdba4
commit c1869a11af

View File

@ -398,7 +398,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);
}
}