aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEttore Perazzoli <ettore@src.gnome.org>2000-10-19 02:36:10 +0800
committerEttore Perazzoli <ettore@src.gnome.org>2000-10-19 02:36:10 +0800
commit4af109915aef59e9101d082d6a02880e9214b589 (patch)
treed96ce595cf9b4265ddf9f8c8d56565980f07563d
parenta701db610809a653c1cfdd5a18d6d976c51e14fc (diff)
downloadgsoc2013-evolution-4af109915aef59e9101d082d6a02880e9214b589.tar
gsoc2013-evolution-4af109915aef59e9101d082d6a02880e9214b589.tar.gz
gsoc2013-evolution-4af109915aef59e9101d082d6a02880e9214b589.tar.bz2
gsoc2013-evolution-4af109915aef59e9101d082d6a02880e9214b589.tar.lz
gsoc2013-evolution-4af109915aef59e9101d082d6a02880e9214b589.tar.xz
gsoc2013-evolution-4af109915aef59e9101d082d6a02880e9214b589.tar.zst
gsoc2013-evolution-4af109915aef59e9101d082d6a02880e9214b589.zip
Initialize the outbuf to be empty before calling unicode_iconv on it.
This fixes a problem with duplicate message bodies on my machine. svn path=/trunk/; revision=5998
-rw-r--r--camel/ChangeLog5
-rw-r--r--camel/camel-mime-filter-charset.c3
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) {