From c1869a11affc427c6fca4d19008e89565a2210ed Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 21 Feb 2017 12:06:03 +0100 Subject: [PATCH] input/curl: format Range offset as unsigned --- src/input/plugins/CurlInputPlugin.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/input/plugins/CurlInputPlugin.cxx b/src/input/plugins/CurlInputPlugin.cxx index b972876a0..e9019d14f 100644 --- a/src/input/plugins/CurlInputPlugin.cxx +++ b/src/input/plugins/CurlInputPlugin.cxx @@ -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); } }