summaryrefslogtreecommitdiffstats
path: root/src/ideviceinstaller.c
diff options
context:
space:
mode:
authorGravatar Martin Szulecki2012-11-27 09:28:30 +0100
committerGravatar Martin Szulecki2012-11-27 09:28:30 +0100
commit7b85d07800030beecf2e2386c3c7539d3ad0629c (patch)
tree43f5339c5811b44ead03b402cc2947bddbd5226d /src/ideviceinstaller.c
parent1462f69a4eae4778d5ef9ef4206ed9902e45f6c6 (diff)
downloadideviceinstaller-7b85d07800030beecf2e2386c3c7539d3ad0629c.tar.gz
ideviceinstaller-7b85d07800030beecf2e2386c3c7539d3ad0629c.tar.bz2
Use binary flag for fopen() to fix file operations for win32
Diffstat (limited to 'src/ideviceinstaller.c')
-rw-r--r--src/ideviceinstaller.c4
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);