lib_stdoutstream:need return write size

Signed-off-by: anjiahao <anjiahao@xiaomi.com>
This commit is contained in:
anjiahao 2024-09-05 16:56:40 +08:00 committed by GUIDINGLI
parent b4def16ac3
commit ae126a8065

View file

@ -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;