Skip to content

Commit c1f19c0

Browse files
authored
Merge pull request #504 from redboltz/fix_503
Fixed #503.
2 parents 8945475 + d7a6565 commit c1f19c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/msgpack/fbuffer.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ extern "C" {
2525

2626
static inline int msgpack_fbuffer_write(void* data, const char* buf, size_t len)
2727
{
28-
return (1 == fwrite(buf, len, 1, (FILE *)data)) ? 0 : -1;
28+
return (len == fwrite(buf, len, 1, (FILE *)data)) ? 0 : -1;
2929
}
3030

3131
/** @} */

0 commit comments

Comments
 (0)