From 52d9dbc10d79d49cb2ae161ca2c14e4804a1a511 Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Tue, 5 Dec 2000 22:08:48 +0000 Subject: Don't use the raw message body as the format argument, use "%s" instead. 2000-12-05 Jeffrey Stedfast * mail-format.c (mail_format_raw_message): Don't use the raw message body as the format argument, use "%s" instead. If the raw message contains %'s then it will segfault otherwise. svn path=/trunk/; revision=6798 --- mail/ChangeLog | 6 ++++++ mail/mail-format.c | 3 +-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/mail/ChangeLog b/mail/ChangeLog index aae9930ea1..5aebe431af 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,3 +1,9 @@ +2000-12-05 Jeffrey Stedfast + + * mail-format.c (mail_format_raw_message): Don't use the raw + message body as the format argument, use "%s" instead. If the raw + message contains %'s then it will segfault otherwise. + 2000-12-04 Dan Winship * mail-config-gui.c (service_page_item_new): Fix a typo so that diff --git a/mail/mail-format.c b/mail/mail-format.c index 8b78c01860..b53c811068 100644 --- a/mail/mail-format.c +++ b/mail/mail-format.c @@ -163,8 +163,7 @@ mail_format_raw_message (CamelMimeMessage *mime_message, MailDisplay *md) g_return_if_fail (CAMEL_IS_MIME_MESSAGE (mime_message)); text = get_data_wrapper_text (CAMEL_DATA_WRAPPER (mime_message)); - fprintf (stderr, "****** %s\n", text ? "yes! we have text" : "nope...no text"); - mail_text_write (md->html, md->stream, text ? text : ""); + mail_text_write (md->html, md->stream, "%s", text ? text : ""); g_free (text); } -- cgit v1.2.3