From: Paul Eggert Date: Fri, 14 Jul 2006 17:54:54 +0000 (+0000) Subject: (do_decode): Output to parameter OUT, not to stdout. X-Git-Tag: v6.0~163 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=77c9d9a00952a981976e4bc929755bab61d81c68;p=thirdparty%2Fcoreutils.git (do_decode): Output to parameter OUT, not to stdout. --- diff --git a/src/base64.c b/src/base64.c index 9fef57c2db..36afbe4dfb 100644 --- a/src/base64.c +++ b/src/base64.c @@ -214,7 +214,7 @@ do_decode (FILE *in, FILE *out, bool ignore_garbage) n = BLOCKSIZE; ok = base64_decode (inbuf, sum, outbuf, &n); - if (fwrite (outbuf, 1, n, stdout) < n) + if (fwrite (outbuf, 1, n, out) < n) error (EXIT_FAILURE, errno, _("write error")); if (!ok)