1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-04-21 03:12:48 +02:00

(do_decode): Output to parameter OUT, not to stdout.

This commit is contained in:
Paul Eggert
2006-07-14 17:54:54 +00:00
parent a283f2df1a
commit 77c9d9a009

View File

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