X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=base64.c;h=9fdf0377afe51c48d89553d02ee2b84c7b9c5f19;hp=0b7200923def5faad89650af0220751100c157f0;hb=7d29626ce4e1fa932c6349c7253e6f774df069fc;hpb=2a06362a155582cd59ae2ef6f0df71694a7eede3 diff --git a/base64.c b/base64.c index 0b72009..9fdf037 100644 --- a/base64.c +++ b/base64.c @@ -39,17 +39,14 @@ * */ -#if HAVE_CONFIG_H -# include "config.h" -#endif - +#include #include #include "mutt.h" /* raw bytes to null-terminated base 64 string */ -void mutt_to_base64 (unsigned char *out, const unsigned char *in, size_t len, - size_t olen) +void mutt_to_base64 (unsigned char *out, const unsigned char *in, ssize_t len, + ssize_t olen) { while (len >= 3 && olen > 10) { *out++ = __m_b64chars[in[0] >> 2];