diff options
-rw-r--r-- | mail/ChangeLog | 5 | ||||
-rw-r--r-- | mail/em-format.c | 9 |
2 files changed, 9 insertions, 5 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog index aa8dbcd6a1..2df893d3c1 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,3 +1,8 @@ +2004-04-14 Not Zed <NotZed@Ximian.com> + + * em-format.c (emf_multipart_related): hmm, use the right pointer + when iterating the pending uri list. + 2004-04-13 Jeffrey Stedfast <fejj@ximian.com> * mail-component.c (impl_createControls): We don't actually want diff --git a/mail/em-format.c b/mail/em-format.c index f9d2a19e33..1d67abbcc2 100644 --- a/mail/em-format.c +++ b/mail/em-format.c @@ -21,7 +21,6 @@ * */ - #ifdef HAVE_CONFIG_H #include <config.h> #endif @@ -1289,13 +1288,13 @@ emf_multipart_related(EMFormat *emf, CamelStream *stream, CamelMimePart *part, c puri = (EMFormatPURI *)ptree->uri_list.head; purin = puri->next; while (purin) { - if (purin->use_count == 0) { - d(printf("part '%s' '%s' used '%d'\n", purin->uri?purin->uri:"", purin->cid, purin->use_count)); - if (purin->func == emf_write_related) { + 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 == emf_write_related) { g_string_printf(emf->part_id, "%s", puri->part_id); em_format_part(emf, stream, puri->part); } else - printf("unreferenced uri generated by format code: %s\n", purin->uri?purin->uri:purin->cid); + printf("unreferenced uri generated by format code: %s\n", puri->uri?puri->uri:puri->cid); } puri = purin; purin = purin->next; |