commit | 07d79af7182c130858a84274718f9d0c84d15109 | [log] [tgz] |
---|---|---|
author | Rob Landley <rob@landley.net> | Mon Jul 23 23:38:34 2012 -0500 |
committer | Rob Landley <rob@landley.net> | Mon Jul 23 23:38:34 2012 -0500 |
tree | 1774612c377ec0411bff86aa0c0d65e666441914 | |
parent | 8f90d3aa019ff89e19e0977c22be8b73c92109a3 [diff] [blame] |
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.
diff --git a/main.c b/main.c index 1b1f0fc..f599418 100644 --- a/main.c +++ b/main.c
@@ -133,12 +133,12 @@ } 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[])