diff options
| author | 2012-11-27 09:28:30 +0100 | |
|---|---|---|
| committer | 2012-11-27 09:28:30 +0100 | |
| commit | 7b85d07800030beecf2e2386c3c7539d3ad0629c (patch) | |
| tree | 43f5339c5811b44ead03b402cc2947bddbd5226d | |
| parent | 1462f69a4eae4778d5ef9ef4206ed9902e45f6c6 (diff) | |
| download | ideviceinstaller-7b85d07800030beecf2e2386c3c7539d3ad0629c.tar.gz ideviceinstaller-7b85d07800030beecf2e2386c3c7539d3ad0629c.tar.bz2 | |
Use binary flag for fopen() to fix file operations for win32
| -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); | 
