This is an automated email from the ASF dual-hosted git repository.
ligd pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git
The following commit(s) were added to refs/heads/master by this push:
new ae126a8065 lib_stdoutstream:need return write size
ae126a8065 is described below
commit ae126a8065db010134e69786ce1c1587c4b6c9b1
Author: anjiahao <[email protected]>
AuthorDate: Thu Sep 5 16:56:40 2024 +0800
lib_stdoutstream:need return write size
Signed-off-by: anjiahao <[email protected]>
---
libs/libc/stream/lib_stdoutstream.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libs/libc/stream/lib_stdoutstream.c
b/libs/libc/stream/lib_stdoutstream.c
index 672346180d..711aeb0195 100644
--- a/libs/libc/stream/lib_stdoutstream.c
+++ b/libs/libc/stream/lib_stdoutstream.c
@@ -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;