aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
Diffstat (limited to 'mail')
-rw-r--r--mail/ChangeLog6
-rw-r--r--mail/mail-format.c2
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);