From 61503984792cad62dc667693220dc06c8ccea362 Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Fri, 26 Aug 2022 14:18:56 -0700 Subject: [PATCH] xwrap.c: fix build. The last change was a bit mangled. --- lib/xwrap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/xwrap.c b/lib/xwrap.c index 721bbf2c..4f764199 100644 --- a/lib/xwrap.c +++ b/lib/xwrap.c @@ -383,14 +383,14 @@ int xrun(char **argv) } // Run child, writing to_stdin, returning stdout or NULL, pass through stderr -char *xrunread(char *argv[], char to_stdin) +char *xrunread(char *argv[], char *to_stdin) { char *result = 0; int pipe[] = {-1, -1}, total = 0, len; pid_t pid; pid = xpopen_both(argv, pipe); - if (to_stdin && *to_stdin) writeall(*pipe, tos_tdin, strlen(to_stdin)); + if (to_stdin && *to_stdin) writeall(*pipe, to_stdin, strlen(to_stdin)); close(*pipe); for (;;) { if (0>=(len = readall(pipe[1], libbuf, sizeof(libbuf)))) break; -- 2.39.2