diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/ideviceinstaller.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ideviceinstaller.c b/src/ideviceinstaller.c index dfd88b7..12577f7 100644 --- a/src/ideviceinstaller.c +++ b/src/ideviceinstaller.c @@ -726,7 +726,7 @@ run_again: } /* copy archive to device */ - f = fopen(appid, "r"); + f = fopen(appid, "rb"); if (!f) { fprintf(stderr, "fopen: %s: %s\n", appid, strerror(errno)); goto leave_cleanup; @@ -1026,7 +1026,7 @@ run_again: } free(copy_path); - f = fopen(localfile, "w"); + f = fopen(localfile, "wb"); if (!f) { fprintf(stderr, "ERROR: fopen: %s: %s\n", localfile, strerror(errno)); free(localfile); |