X-Git-Url: https://git.exim.org/exim.git/blobdiff_plain/ed0512a1a151a4108d7fe309055219c2da3b2bbc..7cd171b76e5bd3cb825c2a8720bc1fe4ad9b37e0:/src/src/imap_utf7.c diff --git a/src/src/imap_utf7.c b/src/src/imap_utf7.c index 10cc1f7fa..b2695cdb9 100644 --- a/src/src/imap_utf7.c +++ b/src/src/imap_utf7.c @@ -25,7 +25,7 @@ uschar *outptr = outbuf; iconv_t icd; #endif -if (!specials) specials = ""; +if (!specials) specials = US""; /* Pass over the string. If it consists entirely of "normal" characters (possibly with leading seps), return it as is. */ @@ -37,7 +37,7 @@ for (s = string; *s; s++) || *s < 0x20 || strchr("./&", *s) || *s == sep - || strchr(specials, *s) + || Ustrchr(specials, *s) ) break; } @@ -49,7 +49,7 @@ sptr = string; slen = Ustrlen(string); #if HAVE_ICONV -if ((icd = iconv_open(US"UTF-16BE", charset)) == (iconv_t)-1) +if ((icd = iconv_open("UTF-16BE", CCS charset)) == (iconv_t)-1) { *error = string_sprintf( "imapfolder: iconv_open(\"UTF-16BE\", \"%s\") failed: %s%s",