diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2003-01-12 04:00:28 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2003-01-12 04:00:28 +0800 |
commit | 969b2c6b650ed31a1accd44eda629c17c1b5ce8b (patch) | |
tree | 18df2e4085c1bcdbd60fd0ec66a4bef75d2b31d5 /mail | |
parent | 7888cdb49528e4da08dd51fab31c41d66952cc2e (diff) | |
download | gsoc2013-evolution-969b2c6b650ed31a1accd44eda629c17c1b5ce8b.tar.gz gsoc2013-evolution-969b2c6b650ed31a1accd44eda629c17c1b5ce8b.tar.zst gsoc2013-evolution-969b2c6b650ed31a1accd44eda629c17c1b5ce8b.zip |
g_strdup the md->charset otherwise we'll get memory corruption later. This
2003-01-11 Jeffrey Stedfast <fejj@ximian.com>
* mail-format.c (mail_format_data_wrapper_write_to_stream):
g_strdup the md->charset otherwise we'll get memory corruption
later. This may be why non-usascii text is displaying incorrectly.
svn path=/trunk/; revision=19419
Diffstat (limited to 'mail')
-rw-r--r-- | mail/ChangeLog | 6 | ||||
-rw-r--r-- | mail/mail-format.c | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog index f750a6960f..30feef968c 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,3 +1,9 @@ +2003-01-11 Jeffrey Stedfast <fejj@ximian.com> + + * mail-format.c (mail_format_data_wrapper_write_to_stream): + g_strdup the md->charset otherwise we'll get memory corruption + later. This may be why non-usascii text is displaying incorrectly. + 2003-01-10 Jeffrey Stedfast <fejj@ximian.com> * folder-browser-ui.c (folder_browser_ui_add_list): We also need diff --git a/mail/mail-format.c b/mail/mail-format.c index d1583db0fb..289af71a97 100644 --- a/mail/mail-format.c +++ b/mail/mail-format.c @@ -1129,7 +1129,7 @@ mail_format_data_wrapper_write_to_stream (CamelDataWrapper *wrapper, MailDisplay /* find out the charset the user wants to override to */ if (mail_display && mail_display->charset) - charset = mail_display->charset; + charset = g_strdup (mail_display->charset); else charset = gconf_client_get_string (gconf, "/apps/evolution/mail/format/charset", NULL); |