Skip to content

Commit

Permalink
Set the open mode properly when using mz_zip_writer_open. zlib-ng#377
Browse files Browse the repository at this point in the history
  • Loading branch information
nmoinvaz committed Mar 30, 2019
1 parent 488f20f commit 82999bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mz_zip_rw.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 82999bf

Please sign in to comment.