about summary refs log tree commit diff
path: root/src/stdio/fputc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/stdio/fputc.c')
-rw-r--r--src/stdio/fputc.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/stdio/fputc.c b/src/stdio/fputc.c
index ec859385..98d0a20a 100644
--- a/src/stdio/fputc.c
+++ b/src/stdio/fputc.c
@@ -3,8 +3,9 @@
 int fputc(int c, FILE *f)
 {
 	FLOCK(f);
-	if (c != f->lbf && f->wpos + 1 < f->wend) *f->wpos++ = c;
-	else c = __overflow(f, c);
+	c = putc_unlocked(c, f);
 	FUNLOCK(f);
 	return c;
 }
+
+weak_alias(fputc, putc);