Skip to content

Commit ae126a8

Browse files
anjiahao1GUIDINGLI
authored andcommitted
lib_stdoutstream:need return write size
Signed-off-by: anjiahao <[email protected]>
1 parent b4def16 commit ae126a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libs/libc/stream/lib_stdoutstream.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ static int stdoutstream_puts(FAR struct lib_outstream_s *self,
8686

8787
do
8888
{
89-
result = fwrite(buffer, len, 1, stream->handle);
89+
result = fwrite(buffer, 1, len, stream->handle);
9090
if (result >= 0)
9191
{
9292
self->nput += result;

0 commit comments

Comments
 (0)