Set the open mode properly when using mz_zip_writer_open. #377

This commit is contained in:
Nathan Moinvaziri 2019-03-29 18:00:45 -07:00
parent 488f20ff1b
commit 82999bf96d

View File

@ -1124,7 +1124,7 @@ static int32_t mz_zip_writer_open_int(void *handle, void *stream, int32_t mode)
int32_t mz_zip_writer_open(void *handle, void *stream)
{
return mz_zip_writer_open_int(handle, stream, 0);
return mz_zip_writer_open_int(handle, stream, MZ_OPEN_MODE_WRITE);
}
int32_t mz_zip_writer_open_file(void *handle, const char *path, int64_t disk_size, uint8_t append)