X-Git-Url: http://git.madism.org/?a=blobdiff_plain;f=imap%2Futf7.c;h=3fa10c7ce4d3fbab885b0f040151657f13d42920;hb=0ecf3d77dc355f4bea99910a9dfb6f5866c9f73a;hp=b6a838dbe5b79915d7eb6d0d37656d30b0487f71;hpb=39d11f5b3feb125654d5c2a4e8f93637a12706c3;p=apps%2Fmadmutt.git diff --git a/imap/utf7.c b/imap/utf7.c index b6a838d..3fa10c7 100644 --- a/imap/utf7.c +++ b/imap/utf7.c @@ -15,6 +15,8 @@ #include "charset.h" #include "imap_private.h" +#include "lib/mem.h" + static int Index_64[128] = { -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, @@ -233,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); } } @@ -241,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);