summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/restore.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/restore.c b/src/restore.c
index 8f4e023..3129176 100644
--- a/src/restore.c
+++ b/src/restore.c
@@ -1420,7 +1420,7 @@ int restore_send_streamed_image_decryption_key(struct idevicerestore_client_t* c
curl_easy_setopt(handle, CURLOPT_WRITEDATA, response);
curl_easy_setopt(handle, CURLOPT_HTTPHEADER, header);
curl_easy_setopt(handle, CURLOPT_POSTFIELDS, request_body);
- curl_easy_setopt(handle, CURLOPT_POSTFIELDSIZE, request_body_size);
+ curl_easy_setopt(handle, CURLOPT_POSTFIELDSIZE, (long)request_body_size);
if (client->debug_level > 0) {
curl_easy_setopt(handle, CURLOPT_VERBOSE, 1L);
}