From c9544ad081d16a8b1d4d7ab6c3584070a4159d72 Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Mon, 21 Jan 2019 18:40:21 +0100 Subject: win32: Make sure to use binary flag for fopen everywhere --- src/idevicerestore.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/idevicerestore.c b/src/idevicerestore.c index 26c720b..3a496de 100644 --- a/src/idevicerestore.c +++ b/src/idevicerestore.c @@ -624,7 +624,7 @@ int idevicerestore_start(struct idevicerestore_client_t* client) lock_file(lockfn, &li); FILE* extf = NULL; if (access(extfn, F_OK) != 0) { - extf = fopen(extfn, "w"); + extf = fopen(extfn, "wb"); } unlock_file(&li); if (!extf) { -- cgit v1.1-32-gdbae