diff options
Diffstat (limited to 'camel')
-rw-r--r-- | camel/ChangeLog | 5 | ||||
-rw-r--r-- | camel/camel-mime-filter-enriched.c | 20 |
2 files changed, 16 insertions, 9 deletions
diff --git a/camel/ChangeLog b/camel/ChangeLog index df4ae24db4..60b210370f 100644 --- a/camel/ChangeLog +++ b/camel/ChangeLog @@ -1,3 +1,8 @@ +2003-01-17 Larry Ewing <lewing@ximian.com> + + * camel-mime-filter-enriched.c (enriched_to_html): only grow the + buffer when we are out of space. + 2003-01-14 Not Zed <NotZed@Ximian.com> * camel-mime-parser.c (folder_scan_step): If we have no diff --git a/camel/camel-mime-filter-enriched.c b/camel/camel-mime-filter-enriched.c index 7f6918bd68..8cf8879162 100644 --- a/camel/camel-mime-filter-enriched.c +++ b/camel/camel-mime-filter-enriched.c @@ -212,14 +212,16 @@ enriched_to_html (CamelMimeFilter *filter, char *in, size_t inlen, size_t prespa case '<': if (!(enriched->flags & IS_RICHTEXT)) { /* text/enriched */ - if ((outptr + 4) < outend && *inptr == '<') { - memcpy (outptr, "<", 4); - outptr += 4; - inptr++; - break; - } else { - inptr--; - goto backup; + if (*inptr == '<') { + if ((outptr + 4) < outend) { + memcpy (outptr, "<", 4); + outptr += 4; + inptr++; + break; + } else { + inptr--; + goto backup; + } } } else { /* text/richtext */ @@ -240,7 +242,7 @@ enriched_to_html (CamelMimeFilter *filter, char *in, size_t inlen, size_t prespa goto backup; } } - + tag = inptr; while (inptr < inend && *inptr != '>') inptr++; |