mirror of
https://github.com/zlib-ng/minizip-ng
synced 2025-03-28 21:13:18 +00:00
Fixed append mode does not work under linux. #250
This commit is contained in:
parent
bcd64ca3b8
commit
53e1d650e5
@ -85,7 +85,7 @@ int32_t mz_stream_posix_open(void *stream, const char *path, int32_t mode)
|
||||
if ((mode & MZ_OPEN_MODE_READWRITE) == MZ_OPEN_MODE_READ)
|
||||
mode_fopen = "rb";
|
||||
else if (mode & MZ_OPEN_MODE_APPEND)
|
||||
mode_fopen = "ab";
|
||||
mode_fopen = "r+b";
|
||||
else if (mode & MZ_OPEN_MODE_CREATE)
|
||||
mode_fopen = "wb";
|
||||
else
|
||||
|
Loading…
x
Reference in New Issue
Block a user