From 055fabdeaa8afcbe905aeb30d5c945f286aecb6a Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Sat, 26 Nov 2011 15:31:46 +0100 Subject: use binary mode for fopen to make it work with win32 --- dev/filerelaytest.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'dev') 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) { -- cgit v1.1-32-gdbae