From 5f33f9cdde2900cb74e6281f8d848bc874c12d95 Mon Sep 17 00:00:00 2001 From: Jeffrey Armstrong Date: Mon, 22 Nov 2021 08:47:32 -0500 Subject: Files for writing are now opened as binaries on Windows --- zwrapper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'zwrapper.c') diff --git a/zwrapper.c b/zwrapper.c index 6d07f2b..3d73835 100644 --- a/zwrapper.c +++ b/zwrapper.c @@ -95,7 +95,7 @@ FILE *fp_index; } else { zf = zip_fopen_index(za, i, 0); - fp = fopen(fullfile, "w"); + fp = fopen(fullfile, "wb"); if(zf != NULL && fp != NULL) { total_read = 0; -- cgit v1.2.3