Skip to content

Commit

Permalink
mx_log: Fix return value of mx_log_printf()
Browse files Browse the repository at this point in the history
  • Loading branch information
mariux committed Oct 26, 2015
1 parent e52e351 commit 8b36941
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mx_log.c
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ int mx_log_printf(const char *fmt, ...)
res = fflush(stderr);
mx_free_null(msg);

if (len2 != len)
if (len2 != len+1)
return -(errno=EIO);

if (!res)
Expand Down

0 comments on commit 8b36941

Please sign in to comment.