Skip to content

Commit

Permalink
progress-bar: don't use stderr explicitly, use bar->out
Browse files Browse the repository at this point in the history
Reported-By: Gisle Vanem
Bug: 993dd56#commitcomment-27070080
  • Loading branch information
bagder committed Jan 24, 2018
1 parent 494f02e commit 02b7280
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tool_cb_prg.c
Expand Up @@ -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;
Expand Down

0 comments on commit 02b7280

Please sign in to comment.