(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 9fef57c..36afbe4 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)