From 0edcf02d769d07eae662df4e044177f984c343ef Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Wed, 19 Aug 2020 17:32:14 -0700 Subject: xputsl: write to stdout, not stdin! This is why the tests have been failing since 42303209f44a335025b9cd1dbe5dd2f3069f2e99. --- 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 5e64007f..bd0cdc4c 100644 --- a/lib/xwrap.c +++ b/lib/xwrap.c @@ -160,7 +160,7 @@ void xprintf(char *format, ...) void xputsl(char *s, int len) { xflush(0); - xwrite(0, s, len); + xwrite(1, s, len); } // xputs with no newline -- cgit v1.2.3