musl - musl - an implementation of the standard library for Linux-based systems

index : musl
musl - an implementation of the standard library for Linux-based systems
summary refs log tree commit diff
path: root/src/stdio
diff options
context:
space:
mode:
Diffstat (limited to 'src/stdio')
-rw-r--r--src/stdio/puts.c 2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/stdio/puts.c b/src/stdio/puts.c
index 4c0e583c..5a38a49b 100644
--- a/src/stdio/puts.c
+++ b/src/stdio/puts.c
@@ -4,7 +4,7 @@ int puts(const char *s)
{
int r;
FLOCK(stdout);
- r = -(fputs(s, stdout) < 0 || putchar('\n') < 0);
+ r = -(fputs(s, stdout) < 0 || putc_unlocked('\n', stdout) < 0);
FUNLOCK(stdout);
return r;
}
generated by cgit v1.2.1 (git 2.18.0) at 2025年10月08日 21:24:00 +0000

AltStyle によって変換されたページ (->オリジナル) /