Merge pull request #812 from redboltz/fix_805

Fixed #805.
This commit is contained in:
Takatoshi Kondo 2019-09-24 20:10:25 +09:00 committed by GitHub
commit ff9f14742b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -25,7 +25,7 @@ extern "C" {
static inline int msgpack_fbuffer_write(void* data, const char* buf, size_t len) static inline int msgpack_fbuffer_write(void* data, const char* buf, size_t len)
{ {
return (len == fwrite(buf, len, 1, (FILE *)data)) ? 0 : -1; return (1 == fwrite(buf, len, 1, (FILE *)data)) ? 0 : -1;
} }
/** @} */ /** @} */