From ec1f102019aaa451427228c4003866eee90276f0 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Fri, 31 Oct 2008 21:04:30 +0000 Subject: ** Fixes bug #558726 (patch by Frederic van Starbmann) 2008-10-31 Matthew Barnes ** Fixes bug #558726 (patch by Frederic van Starbmann) * mail/em-format-html.c (emfh_multipart_related_check): * plugins/mail-to-task/mail-to-task.c (do_mail_to_task): * plugins/plugin-manager/plugin-manager.c (eppm_enable_toggled): Fix several potential format string crashes. svn path=/trunk/; revision=36709 --- mail/em-format-html.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mail/em-format-html.c') diff --git a/mail/em-format-html.c b/mail/em-format-html.c index caa5c0f51c..98badf5e70 100644 --- a/mail/em-format-html.c +++ b/mail/em-format-html.c @@ -1060,7 +1060,7 @@ emfh_multipart_related_check(struct _EMFormatHTMLJob *job, int cancelled) if (puri->use_count == 0) { d(printf("part '%s' '%s' used '%d'\n", puri->uri?puri->uri:"", puri->cid, puri->use_count)); if (puri->func == emfh_write_related) { - g_string_printf(((EMFormat *)job->format)->part_id, puri->part_id); + g_string_printf(((EMFormat *)job->format)->part_id, "%s", puri->part_id); em_format_part((EMFormat *)job->format, (CamelStream *)job->stream, puri->part); } /* else it was probably added by a previous format this loop */ -- cgit