From 5e3578a00f651d9ed04f6b9beda305408d6c09ce Mon Sep 17 00:00:00 2001 From: "C. McEnroe" Date: Tue, 31 Mar 2020 18:54:37 -0400 Subject: Fix writing verbose to stderr --- litterbox.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litterbox.c b/litterbox.c index b8bc25d..1591b39 100644 --- a/litterbox.c +++ b/litterbox.c @@ -54,7 +54,7 @@ static void format(const char *format, ...) { int len = vsnprintf(buf, sizeof(buf), format, ap); va_end(ap); assert((size_t)len < sizeof(buf)); - if (verbose) printf("%s", buf); + if (verbose) fprintf(stderr, "%s", buf); clientWrite(buf, len); } -- cgit 1.4.1