diff --git a/libs/libc/stdio/lib_puts.c b/libs/libc/stdio/lib_puts.c index b51a5a83942..8e57f888e7c 100644 --- a/libs/libc/stdio/lib_puts.c +++ b/libs/libc/stdio/lib_puts.c @@ -57,7 +57,7 @@ int puts(FAR const IPTR char *s) /* Write the string without its trailing '\0' */ nwritten = fputs_unlocked(s, stream); - if (nwritten > 0) + if (nwritten >= 0) { /* Followed by a newline */