summaryrefslogtreecommitdiffstats
path: root/dev/filerelaytest.c
diff options
context:
space:
mode:
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) {