about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/stdio/puts.c2
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;
 }