X-Git-Url: http://git.madism.org/?a=blobdiff_plain;f=imap%2Futf7.c;h=3fa10c7ce4d3fbab885b0f040151657f13d42920;hb=814a01519c9605d479201b99eb16c97b0ad8635d;hp=bc5571a5bf001ae66d1b800f9285dbb60ccd5315;hpb=492434e350e3ca2d3330c2589de3f9485929dab7;p=apps%2Fmadmutt.git diff --git a/imap/utf7.c b/imap/utf7.c index bc5571a..3fa10c7 100644 --- a/imap/utf7.c +++ b/imap/utf7.c @@ -235,7 +235,7 @@ void imap_utf7_encode (char **s) char *t = safe_strdup (*s); if (!mutt_convert_string (&t, Charset, "UTF-8", 0)) - utf8_to_utf7 (t, mutt_strlen (t), s, 0); + utf8_to_utf7 (t, safe_strlen (t), s, 0); FREE (&t); } } @@ -243,7 +243,7 @@ void imap_utf7_encode (char **s) void imap_utf7_decode (char **s) { if (Charset) { - char *t = utf7_to_utf8 (*s, mutt_strlen (*s), 0, 0); + char *t = utf7_to_utf8 (*s, safe_strlen (*s), 0, 0); if (t && !mutt_convert_string (&t, "UTF-8", Charset, 0)) { FREE (s);