1
0
mirror of https://github.com/moparisthebest/curl synced 2024-11-04 16:45:06 -05:00

progress-bar: don't use stderr explicitly, use bar->out

Reported-By: Gisle Vanem
Bug: 993dd5651a (commitcomment-27070080)
This commit is contained in:
Daniel Stenberg 2018-01-24 15:27:58 +01:00
parent 494f02e08a
commit 02b7280681
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -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;