X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/ff2b7b715934b346b6121a2a434db116d3203663..33628003aaff01bab5d305b76603e1a32dc6b49e:/sbr/fmt_rfc2047.c diff --git a/sbr/fmt_rfc2047.c b/sbr/fmt_rfc2047.c index 45374765..b5ce57f8 100644 --- a/sbr/fmt_rfc2047.c +++ b/sbr/fmt_rfc2047.c @@ -6,6 +6,8 @@ */ #include "h/mh.h" +#include "fmt_rfc2047.h" +#include "check_charset.h" #include "h/utils.h" #ifdef HAVE_ICONV # include @@ -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++) ;