diff options
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) } 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; |