aboutsummaryrefslogtreecommitdiffstats
path: root/mail/em-format-html.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2008-11-01 05:04:30 +0800
committerMatthew Barnes <mbarnes@src.gnome.org>2008-11-01 05:04:30 +0800
commitec1f102019aaa451427228c4003866eee90276f0 (patch)
treea694c2a0cd58e721fcf00336160880f74a9d661a /mail/em-format-html.c
parente4d1b4403780f992291a33b5621e953d3e50455d (diff)
downloadgsoc2013-evolution-ec1f102019aaa451427228c4003866eee90276f0.tar
gsoc2013-evolution-ec1f102019aaa451427228c4003866eee90276f0.tar.gz
gsoc2013-evolution-ec1f102019aaa451427228c4003866eee90276f0.tar.bz2
gsoc2013-evolution-ec1f102019aaa451427228c4003866eee90276f0.tar.lz
gsoc2013-evolution-ec1f102019aaa451427228c4003866eee90276f0.tar.xz
gsoc2013-evolution-ec1f102019aaa451427228c4003866eee90276f0.tar.zst
gsoc2013-evolution-ec1f102019aaa451427228c4003866eee90276f0.zip
** Fixes bug #558726 (patch by Frederic van Starbmann)
2008-10-31 Matthew Barnes <mbarnes@redhat.com> ** 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
Diffstat (limited to 'mail/em-format-html.c')
-rw-r--r--mail/em-format-html.c2
1 files changed, 1 insertions, 1 deletions
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 */