summaryrefslogtreecommitdiffstats
path: root/dev/filerelaytest.c
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2011-11-26 15:31:46 +0100
committerGravatar Martin Szulecki2012-03-19 01:45:43 +0100
commit055fabdeaa8afcbe905aeb30d5c945f286aecb6a (patch)
treeedf19d52bb974af429c0f815b0d80b6ac91bae87 /dev/filerelaytest.c
parentd9051baf2e8f4672e6fab3b185a1ec7ce1a8c864 (diff)
downloadlibimobiledevice-055fabdeaa8afcbe905aeb30d5c945f286aecb6a.tar.gz
libimobiledevice-055fabdeaa8afcbe905aeb30d5c945f286aecb6a.tar.bz2
use binary mode for fopen to make it work with win32
Diffstat (limited to 'dev/filerelaytest.c')
-rw-r--r--dev/filerelaytest.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dev/filerelaytest.c b/dev/filerelaytest.c
index 6e611c0..8c9514b 100644
--- a/dev/filerelaytest.c
+++ b/dev/filerelaytest.c
@@ -80,7 +80,7 @@ int main(int argc, char **argv)
uint32_t cnt = 0;
uint32_t len = 0;
char buf[4096];
- FILE *f = fopen("dump.cpio.gz", "w");
+ FILE *f = fopen("dump.cpio.gz", "wb");
setbuf(stdout, NULL);
printf("receiving ");
while (idevice_connection_receive(dump, buf, 4096, &len) == IDEVICE_E_SUCCESS) {