diff options
| author | 2011-11-26 15:31:46 +0100 | |
|---|---|---|
| committer | 2012-03-19 01:45:43 +0100 | |
| commit | 055fabdeaa8afcbe905aeb30d5c945f286aecb6a (patch) | |
| tree | edf19d52bb974af429c0f815b0d80b6ac91bae87 /tools/ideviceimagemounter.c | |
| parent | d9051baf2e8f4672e6fab3b185a1ec7ce1a8c864 (diff) | |
| download | libimobiledevice-055fabdeaa8afcbe905aeb30d5c945f286aecb6a.tar.gz libimobiledevice-055fabdeaa8afcbe905aeb30d5c945f286aecb6a.tar.bz2 | |
use binary mode for fopen to make it work with win32
Diffstat (limited to 'tools/ideviceimagemounter.c')
| -rw-r--r-- | tools/ideviceimagemounter.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/ideviceimagemounter.c b/tools/ideviceimagemounter.c index ce690de..4a650ee 100644 --- a/tools/ideviceimagemounter.c +++ b/tools/ideviceimagemounter.c | |||
| @@ -365,7 +365,7 @@ int main(int argc, char **argv) | |||
| 365 | } else { | 365 | } else { |
| 366 | char sig[8192]; | 366 | char sig[8192]; |
| 367 | size_t sig_length = 0; | 367 | size_t sig_length = 0; |
| 368 | FILE *f = fopen(image_sig_path, "r"); | 368 | FILE *f = fopen(image_sig_path, "rb"); |
| 369 | if (!f) { | 369 | if (!f) { |
| 370 | fprintf(stderr, "Error opening signature file '%s': %s\n", image_sig_path, strerror(errno)); | 370 | fprintf(stderr, "Error opening signature file '%s': %s\n", image_sig_path, strerror(errno)); |
| 371 | goto leave; | 371 | goto leave; |
| @@ -377,7 +377,7 @@ int main(int argc, char **argv) | |||
| 377 | goto leave; | 377 | goto leave; |
| 378 | } | 378 | } |
| 379 | 379 | ||
| 380 | f = fopen(image_path, "r"); | 380 | f = fopen(image_path, "rb"); |
| 381 | if (!f) { | 381 | if (!f) { |
| 382 | fprintf(stderr, "Error opening image file '%s': %s\n", image_path, strerror(errno)); | 382 | fprintf(stderr, "Error opening image file '%s': %s\n", image_path, strerror(errno)); |
| 383 | goto leave; | 383 | goto leave; |
