From 07a896862ddf65d150d4edc46be5914cffe11587 Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Fri, 21 Aug 2020 11:00:33 -0700 Subject: 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. --- lib/xwrap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') 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); } -- cgit v1.2.3