From 77bbbd868b13dab04febcdd9086eac2fa0c8c27f Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Thu, 16 Nov 2000 07:20:12 +0000 Subject: data->err must be used, not stderr --- lib/progress.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/progress.c b/lib/progress.c index 79ba1b59d..8ad6821fe 100644 --- a/lib/progress.c +++ b/lib/progress.c @@ -113,7 +113,7 @@ void pgrsDone(struct UrlData *data) if(!(data->progress.flags & PGRS_HIDE)) { data->progress.lastshow=0; pgrsUpdate(data); /* the final (forced) update */ - fprintf(stderr, "\n"); + fprintf(data->err, "\n"); } } @@ -322,7 +322,7 @@ int pgrsUpdate(struct UrlData *data) if(total_expected_transfer) total_percen=(double)(total_transfer/total_expected_transfer)*100; - fprintf(stderr, + fprintf(data->err, "\r%3d %s %3d %s %3d %s %s %s %s %s %s %s", (int)total_percen, /* total % */ max5data(total_expected_transfer, max5[2]), /* total size */ -- cgit v1.2.3