X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/69819af4834557e60c33bb378e29cf3d4e8269f8..33628003aaff01bab5d305b76603e1a32dc6b49e:/sbr/fmt_rfc2047.c diff --git a/sbr/fmt_rfc2047.c b/sbr/fmt_rfc2047.c index d98b5008..b5ce57f8 100644 --- a/sbr/fmt_rfc2047.c +++ b/sbr/fmt_rfc2047.c @@ -5,8 +5,10 @@ * complete copyright information. */ -#include -#include +#include "h/mh.h" +#include "fmt_rfc2047.h" +#include "check_charset.h" +#include "h/utils.h" #ifdef HAVE_ICONV # include #endif @@ -91,7 +93,9 @@ decode_rfc2047 (char *str, char *dst, size_t dstlen) if (!strchr (str, '=')) return 0; +#ifdef HAVE_ICONV bool use_iconv = false; /* are we converting encoding with iconv? */ +#endif bool between_encodings = false; bool equals_pending = false; for (p = str, q = dst; *p; p++) { @@ -146,7 +150,7 @@ decode_rfc2047 (char *str, char *dst, size_t dstlen) */ for (endofcharset = startofmime; - *endofcharset != '*' && endofcharset < pp; + *endofcharset != '*' && endofcharset < pp; endofcharset++) ;