diff options
Diffstat (limited to 'src/unmime.c')
-rw-r--r-- | src/unmime.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/unmime.c b/src/unmime.c index 1365c3ce..fedf44f4 100644 --- a/src/unmime.c +++ b/src/unmime.c @@ -116,10 +116,8 @@ gchar *unmime_header(const gchar *encoded_str) /* convert to UTF-8 */ conv_str = conv_codeset_strdup(decoded_text, charset, NULL); - if (!conv_str) { - conv_str = g_malloc(len + 1); - conv_utf8todisp(conv_str, len + 1, decoded_text); - } + if (!conv_str) + conv_str = conv_utf8todisp(decoded_text); g_string_append(outbuf, conv_str); g_free(conv_str); |