I installed this to fix some confusing code in base64.c:

2006-07-14  Paul Eggert  <[EMAIL PROTECTED]>

        * src/base64.c (do_decode): Output to parameter OUT, not to stdout.
        This doesn't fix any bugs, since OUT always equals stdout, but it
        makes the code easier to understand.

--- src/base64.c        5 Mar 2006 11:20:53 -0000       1.5
+++ src/base64.c        14 Jul 2006 17:54:54 -0000      1.6
@@ -214,7 +214,7 @@ do_decode (FILE *in, FILE *out, bool ign
       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)


_______________________________________________
Bug-coreutils mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-coreutils

Reply via email to