X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=base64.c;h=9fdf0377afe51c48d89553d02ee2b84c7b9c5f19;hp=728171b36527286059ad5df0f67c45ae67f4d56c;hb=6be673363a420d4f21e9ab1fbd5835ffba38a7ed;hpb=bec523bb3ad78ec9100efb18fb58d43d38b304de diff --git a/base64.c b/base64.c index 728171b..9fdf037 100644 --- a/base64.c +++ b/base64.c @@ -39,16 +39,14 @@ * */ -#if HAVE_CONFIG_H -# include "config.h" -#endif +#include +#include #include "mutt.h" -#include "mime.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];