X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=citadel%2Fbase64.c;h=388606cd287f93577762cb9921265ff9da575f8b;hb=4eb74b26380dfde31c86c685f0589e0c653aebf0;hp=53965bd438e7af08af81deda8624c50e9a7c98ba;hpb=83875cf99a93ec708989894477f3880cf4579630;p=citadel.git diff --git a/citadel/base64.c b/citadel/base64.c index 53965bd43..388606cd2 100644 --- a/citadel/base64.c +++ b/citadel/base64.c @@ -3,8 +3,21 @@ * * Encode or decode file as MIME base64 (RFC 1341) * Public domain by John Walker, August 11 1997 - * Modified slightly for the Citadel/UX system, June 1999 + * Modified slightly for the Citadel system, June 1999 * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ @@ -40,7 +53,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);