From b7b90c3d1921c85e905106605dcc5b37037ccf87 Mon Sep 17 00:00:00 2001 From: Nathan Moinvaziri Date: Thu, 15 Aug 2019 17:09:10 -0700 Subject: [PATCH] Added append mode for ADDINZIP when using zip compatibility. #408 --- mz_compat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mz_compat.c b/mz_compat.c index 0171918..15263cb 100644 --- a/mz_compat.c +++ b/mz_compat.c @@ -48,7 +48,7 @@ static int32_t zipConvertAppendToStreamMode(int append) mode |= MZ_OPEN_MODE_CREATE | MZ_OPEN_MODE_APPEND; break; case APPEND_STATUS_ADDINZIP: - mode |= MZ_OPEN_MODE_READ; + mode |= MZ_OPEN_MODE_READ | MZ_OPEN_MODE_APPEND; break; } return mode;