From 055fabdeaa8afcbe905aeb30d5c945f286aecb6a Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Sat, 26 Nov 2011 15:31:46 +0100 Subject: use binary mode for fopen to make it work with win32 --- tools/ideviceimagemounter.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tools/ideviceimagemounter.c') 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) } else { char sig[8192]; size_t sig_length = 0; - FILE *f = fopen(image_sig_path, "r"); + FILE *f = fopen(image_sig_path, "rb"); if (!f) { fprintf(stderr, "Error opening signature file '%s': %s\n", image_sig_path, strerror(errno)); goto leave; @@ -377,7 +377,7 @@ int main(int argc, char **argv) goto leave; } - f = fopen(image_path, "r"); + f = fopen(image_path, "rb"); if (!f) { fprintf(stderr, "Error opening image file '%s': %s\n", image_path, strerror(errno)); goto leave; -- cgit v1.1-32-gdbae