summaryrefslogtreecommitdiffstats
path: root/dev
diff options
context:
space:
mode:
Diffstat (limited to 'dev')
-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)
80 uint32_t cnt = 0; 80 uint32_t cnt = 0;
81 uint32_t len = 0; 81 uint32_t len = 0;
82 char buf[4096]; 82 char buf[4096];
83 FILE *f = fopen("dump.cpio.gz", "w"); 83 FILE *f = fopen("dump.cpio.gz", "wb");
84 setbuf(stdout, NULL); 84 setbuf(stdout, NULL);
85 printf("receiving "); 85 printf("receiving ");
86 while (idevice_connection_receive(dump, buf, 4096, &len) == IDEVICE_E_SUCCESS) { 86 while (idevice_connection_receive(dump, buf, 4096, &len) == IDEVICE_E_SUCCESS) {