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 83eb70d + 4b4eb83 commit ff9f147Copy full SHA for ff9f147
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 (len == fwrite(buf, len, 1, (FILE *)data)) ? 0 : -1;
+ return (1 == fwrite(buf, len, 1, (FILE *)data)) ? 0 : -1;
29
}
30
31
/** @} */
0 commit comments