Seek to end of stream when appending.

This commit is contained in:
Nathan Moinvaziri 2018-11-23 15:07:34 -08:00
parent 2ce1fe2732
commit 7f73943486

View File

@ -93,6 +93,9 @@ int32_t mz_stream_os_open(void *stream, const char *path, int32_t mode)
return MZ_OPEN_ERROR;
}
if (mode & MZ_OPEN_MODE_APPEND)
return mz_stream_os_seek(stream, 0, MZ_SEEK_END);
return MZ_OK;
}