diff options
author | Martin Szulecki | 2012-07-17 16:22:42 +0200 |
---|---|---|
committer | Nikias Bassen | 2012-07-17 16:22:42 +0200 |
commit | 955f4ff05add89bb665a0a9f7a3aeffb009fc8c3 (patch) | |
tree | d9e1a6cd09303149cffa8f50fd5d88b601e38680 /src | |
parent | 190a6b04c4f12ee20e7ae86cc3f280c63c2503f6 (diff) | |
download | idevicerestore-955f4ff05add89bb665a0a9f7a3aeffb009fc8c3.tar.gz idevicerestore-955f4ff05add89bb665a0a9f7a3aeffb009fc8c3.tar.bz2 |
download: Let libcurl use it's own file writing functions instead of fwrite
This apparently fixes some issues leading to corrupt downloads.
Diffstat (limited to 'src')
-rw-r--r-- | src/download.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/download.c b/src/download.c index 849088e..206086e 100644 --- a/src/download.c +++ b/src/download.c @@ -122,7 +122,7 @@ int download_to_file(const char* url, const char* filename, int enable_progress) if (idevicerestore_debug) curl_easy_setopt(handle, CURLOPT_VERBOSE, 1); - curl_easy_setopt(handle, CURLOPT_WRITEFUNCTION, (curl_write_callback)&fwrite); + curl_easy_setopt(handle, CURLOPT_WRITEFUNCTION, NULL); curl_easy_setopt(handle, CURLOPT_WRITEDATA, f); if (enable_progress > 0) |