aboutsummaryrefslogtreecommitdiff
path: root/libbb
diff options
context:
space:
mode:
Diffstat (limited to 'libbb')
-rw-r--r--libbb/xfuncs_printf.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/libbb/xfuncs_printf.c b/libbb/xfuncs_printf.c
index d36284131..7207ec58a 100644
--- a/libbb/xfuncs_printf.c
+++ b/libbb/xfuncs_printf.c
@@ -263,10 +263,7 @@ int FAST_FUNC fflush_all(void)
263 263
264int FAST_FUNC bb_putchar(int ch) 264int FAST_FUNC bb_putchar(int ch)
265{ 265{
266 /* time.c needs putc(ch, stdout), not putchar(ch). 266 return putchar(ch);
267 * it does "stdout = stderr;", but then glibc's putchar()
268 * doesn't work as expected. bad glibc, bad */
269 return putc(ch, stdout);
270} 267}
271 268
272/* Die with an error message if we can't copy an entire FILE* to stdout, 269/* Die with an error message if we can't copy an entire FILE* to stdout,