diff options
-rw-r--r-- | camel/ChangeLog | 5 | ||||
-rw-r--r-- | camel/camel-mime-filter-charset.c | 3 |
2 files changed, 8 insertions, 0 deletions
diff --git a/camel/ChangeLog b/camel/ChangeLog index 682a67a5d6..7a4a96ae33 100644 --- a/camel/ChangeLog +++ b/camel/ChangeLog @@ -1,3 +1,8 @@ +2000-10-18 Ettore Perazzoli <ettore@helixcode.com> + + * camel-mime-filter-charset.c (complete): Put a zero at the start + of the outbuf. + 2000-10-18 Not Zed <NotZed@HelixCode.com> * camel-mime-part.c (add_header): No, we must not encode the diff --git a/camel/camel-mime-filter-charset.c b/camel/camel-mime-filter-charset.c index 788c7022ab..5c7ae438d6 100644 --- a/camel/camel-mime-filter-charset.c +++ b/camel/camel-mime-filter-charset.c @@ -100,6 +100,9 @@ complete(CamelMimeFilter *mf, char *in, size_t len, size_t prespace, char **out, inlen = len; outbuf = mf->outbuf; outlen = mf->outsize; + + outbuf[0] = '\0'; + if (inlen>0) { converted = unicode_iconv(f->ic, &inbuf, &inlen, &outbuf, &outlen); if (converted == -1) { |