Fixed append mode does not work under linux. #250

This commit is contained in:
Nathan Moinvaziri 2018-04-18 20:51:00 -07:00
parent bcd64ca3b8
commit 53e1d650e5

View File

@ -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