diff options
author | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2005-03-17 10:02:26 +0000 |
---|---|---|
committer | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2005-03-17 10:02:26 +0000 |
commit | 959bdb992afe0d2964381255da7f7eab6aa9de61 (patch) | |
tree | 37d5b8594be5d15c91faa9e34525b6938e938650 /src/unmime.c | |
parent | 6127a936645cf2d2d4fcdfd1461f4d1f7268a3b7 (diff) |
made every code conversion API allocate new memory.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@180 ee746299-78ed-0310-b773-934348b2243d
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); |