summaryrefslogtreecommitdiff
path: root/zwrapper.c
diff options
context:
space:
mode:
authorJeffrey Armstrong <jeff@approximatrix.com>2021-11-22 08:47:32 -0500
committerJeffrey Armstrong <jeff@approximatrix.com>2021-11-22 08:47:32 -0500
commit5f33f9cdde2900cb74e6281f8d848bc874c12d95 (patch)
tree6dfc95eb36cd6e57cb0abb11676180816a962e4c /zwrapper.c
parentb5ec0f54fe391f3f948ba23b1e534901f45c64a2 (diff)
downloadlibzip-wrapper-5f33f9cdde2900cb74e6281f8d848bc874c12d95.tar.gz
libzip-wrapper-5f33f9cdde2900cb74e6281f8d848bc874c12d95.zip
Files for writing are now opened as binaries on Windows
Diffstat (limited to 'zwrapper.c')
-rw-r--r--zwrapper.c2
1 files changed, 1 insertions, 1 deletions
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;