summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libmpdemux/network.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/libmpdemux/network.c b/libmpdemux/network.c
index 5ca2bf78d4..06734ec7d1 100644
--- a/libmpdemux/network.c
+++ b/libmpdemux/network.c
@@ -402,7 +402,11 @@ http_send_request( URL_t *url, off_t pos ) {
if(pos>0) {
// Extend http_send_request with possibility to do partial content retrieval
- snprintf(str, 256, "Range: bytes=%d-", pos);
+#ifdef __MINGW32__
+ snprintf(str, 256, "Range: bytes=%I64d-", (int64_t)pos);
+#else
+ snprintf(str, 256, "Range: bytes=%lld-", (long long)pos);
+#endif
http_set_field(http_hdr, str);
}