aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2020-08-21 11:00:33 -0700
committerRob Landley <rob@landley.net>2020-08-21 17:02:06 -0500
commit07a896862ddf65d150d4edc46be5914cffe11587 (patch)
tree12c377056cb63bbe45a0746a76871d411b15323c
parent050e36a10ebf91bfe8307eea7fc5156d5daf8fc9 (diff)
downloadtoybox-07a896862ddf65d150d4edc46be5914cffe11587.tar.gz
xputsl: fix the *other* line in this function :-)
Some of the grep tests were still failing because we weren't flushing stdout --- xflush takes a bool that says whether to actually flush, so we need to pass 1, not 0.
-rw-r--r--lib/xwrap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/xwrap.c b/lib/xwrap.c
index bd0cdc4c..1bc929f1 100644
--- a/lib/xwrap.c
+++ b/lib/xwrap.c
@@ -159,7 +159,7 @@ void xprintf(char *format, ...)
// Put string with length (does not append newline)
void xputsl(char *s, int len)
{
- xflush(0);
+ xflush(1);
xwrite(1, s, len);
}