]> code.citadel.org Git - citadel.git/blobdiff - citadel/base64.c
* Replaced all "Citadel/UX" references with "Citadel"
[citadel.git] / citadel / base64.c
index ff69e32188619c4fda76f31ab98a0e8a8de4d298..c9717d145bb788d9456981c25160f23364311835 100644 (file)
@@ -1,18 +1,11 @@
 /*
-
-          Encode or decode file as MIME base64 (RFC 1341)
-
-                           by John Walker
-                      http://www.fourmilab.ch/
-
-               This program is in the public domain.
-
-Revision date: 11th August 1997
-
-Modified slightly for the Citadel/UX system, June 1999
-http://uncnsrd.mt-kisco.ny.us/citadel
-
-*/
+ * $Id$
+ *
+ * Encode or decode file as MIME base64 (RFC 1341)
+ * Public domain by John Walker, August 11 1997
+ * Modified slightly for the Citadel system, June 1999
+ *
+ */
 
 
 #include <stdio.h>
@@ -47,7 +40,7 @@ static int inbuf(void)
     if (ateof) {
        return FALSE;
     }
-    l = fread(iobuf, 1, 256, fi);     /* Read input buffer */
+    l = fread(iobuf, 1, sizeof iobuf, fi);     /* Read input buffer */
     if (l <= 0) {
        if (ferror(fi)) {
            exit(1);