]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(do_decode): Output to parameter OUT, not to stdout.
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 14 Jul 2006 17:54:54 +0000 (17:54 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 14 Jul 2006 17:54:54 +0000 (17:54 +0000)
src/base64.c

index 9fef57c2db15dabd01221ae6f47b9d3dd4413c1b..36afbe4dfb31390b49c1bdb637da56a3bff99f94 100644 (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)