#include <lib-lib/file.h>
#include <lib-mime/mime.h>
+#include <lib-mime/rfc3676.h>
#include <lib-ui/curses.h>
#include "mutt.h"
#include "recvattach.h"
#include "handler.h"
-#include "rfc3676.h"
#include "keymap.h"
#include "copy.h"
#include "charset.h"
else
bufi[l++] = ch;
- if (l + 8 >= sizeof (bufi))
+ if (l + 8 >= ssizeof (bufi))
mutt_convert_to_state (cd, bufi, &l, s);
}
void mutt_decode_attachment (BODY * b, STATE * s)
{
int istext = mutt_is_text_part (b);
- iconv_t cd = (iconv_t) (-1);
+ iconv_t cd = MUTT_ICONV_ERROR;
Quotebuf[0] = '\0';
const char *charset = mutt_get_parameter ("charset", b->parameter);
if (!option (OPTSTRICTMIME) && !charset)
- charset = mutt_get_first_charset (AssumedCharset);
+ charset = charset_getfirst(AssumedCharset);
if (charset && Charset)
cd = mutt_iconv_open (Charset, charset, M_ICONV_HOOK_FROM);
}
break;
}
- if (cd != (iconv_t) (-1))
+ if (cd != MUTT_ICONV_ERROR)
iconv_close (cd);
}