We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8945475 + d7a6565 commit c1f19c0Copy full SHA for c1f19c0
include/msgpack/fbuffer.h
@@ -25,7 +25,7 @@ extern "C" {
25
26
static inline int msgpack_fbuffer_write(void* data, const char* buf, size_t len)
27
{
28
- return (1 == fwrite(buf, len, 1, (FILE *)data)) ? 0 : -1;
+ return (len == fwrite(buf, len, 1, (FILE *)data)) ? 0 : -1;
29
}
30
31
/** @} */
0 commit comments