From: Daniel Stenberg Date: Wed, 24 Jan 2018 14:27:58 +0000 (+0100) Subject: progress-bar: don't use stderr explicitly, use bar->out X-Git-Tag: curl-7_59_0~146 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=02b7280681a161716283dc574a85989f2f4d99cd;p=curl progress-bar: don't use stderr explicitly, use bar->out Reported-By: Gisle Vanem Bug: https://github.com/curl/curl/commit/993dd5651a6c853bfe3870f6a69c7b329fa4e8ce#commitcomment-27070080 --- diff --git a/src/tool_cb_prg.c b/src/tool_cb_prg.c index cf3251b29..286a3ffbc 100644 --- a/src/tool_cb_prg.c +++ b/src/tool_cb_prg.c @@ -78,7 +78,7 @@ static void fly(struct ProgressData *bar, bool moved) pos = sinus[(bar->tick + 15)%200] / (10000 / check); buf[pos] = '#'; - fputs(buf, stderr); + fputs(buf, bar->out); bar->tick += 2; if(bar->tick >= 200) bar->tick -= 200;