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

View File

@@ -25,7 +25,7 @@ extern "C" {
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;
}
/** @} */