lib_stdoutstream:need return write size
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
This commit is contained in:
parent
b4def16ac3
commit
ae126a8065
1 changed files with 1 additions and 1 deletions
|
@ -86,7 +86,7 @@ static int stdoutstream_puts(FAR struct lib_outstream_s *self,
|
|||
|
||||
do
|
||||
{
|
||||
result = fwrite(buffer, len, 1, stream->handle);
|
||||
result = fwrite(buffer, 1, len, stream->handle);
|
||||
if (result >= 0)
|
||||
{
|
||||
self->nput += result;
|
||||
|
|
Loading…
Reference in a new issue