diff options
Diffstat (limited to 'libsylph/unmime.c')
-rw-r--r-- | libsylph/unmime.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libsylph/unmime.c b/libsylph/unmime.c index 23d787a3..27267b13 100644 --- a/libsylph/unmime.c +++ b/libsylph/unmime.c @@ -99,14 +99,15 @@ gchar *unmime_header(const gchar *encoded_str) if (encoding == 'B') { decoded_text = g_malloc (eword_end_p - (text_begin_p + 1) + 1); - len = base64_decode(decoded_text, text_begin_p + 1, + len = base64_decode((guchar *)decoded_text, + text_begin_p + 1, eword_end_p - (text_begin_p + 1)); decoded_text[len] = '\0'; } else if (encoding == 'Q') { decoded_text = g_malloc (eword_end_p - (text_begin_p + 1) + 1); len = qp_decode_q_encoding - (decoded_text, text_begin_p + 1, + ((guchar *)decoded_text, text_begin_p + 1, eword_end_p - (text_begin_p + 1)); } else { g_string_append_len(outbuf, p, eword_end_p + 2 - p); |