From 07d79af7182c130858a84274718f9d0c84d15109 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Mon, 23 Jul 2012 23:38:34 -0500 Subject: Workaround longstanding glibc/ld bug, ala http://sources.redhat.com/bugzilla/show_bug.cgi?id=3400, which prevents "./toybox | wc" from producing any output when toybox was statically linked. --- main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'main.c') diff --git a/main.c b/main.c index 1b1f0fcc..f5994187 100644 --- a/main.c +++ b/main.c @@ -133,12 +133,12 @@ void toybox_main(void) } len += printf("%s ",toy_list[i].name); if (len>65) { - putchar('\n'); + xputc('\n'); len=0; } } } - putchar('\n'); + xputc('\n'); } int main(int argc, char *argv[]) -- cgit v1.2.3