X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=imap%2Futf7.c;h=bc5571a5bf001ae66d1b800f9285dbb60ccd5315;hp=0941b835ec3312fe5a018e7c1c584261c9dc60e1;hb=5b5c457f669423f32f1e96ed5ff784e07b4a81da;hpb=c3e57678c8be193fc137854020f3a90887be97c9 diff --git a/imap/utf7.c b/imap/utf7.c index 0941b83..bc5571a 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, strlen (t), s, 0); + utf8_to_utf7 (t, mutt_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, strlen (*s), 0, 0); + char *t = utf7_to_utf8 (*s, mutt_strlen (*s), 0, 0); if (t && !mutt_convert_string (&t, "UTF-8", Charset, 0)) { FREE (s);