aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-mime-part.c
diff options
context:
space:
mode:
Diffstat (limited to 'camel/camel-mime-part.c')
-rw-r--r--camel/camel-mime-part.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/camel/camel-mime-part.c b/camel/camel-mime-part.c
index 874400deb8..84140f5aa7 100644
--- a/camel/camel-mime-part.c
+++ b/camel/camel-mime-part.c
@@ -25,6 +25,7 @@
* USA
*/
#include <config.h>
+#include <string.h>
#include "camel-mime-part.h"
#include <stdio.h>
#include "gmime-content-field.h"
@@ -591,6 +592,7 @@ _get_content_object (CamelMedium *medium)
* Beware : this will destroy the temp buffer as well
*/
gtk_object_unref (GTK_OBJECT (stream));
+ mime_part->temp_message_buffer = 0;
} else {
CAMEL_LOG_FULL_DEBUG ("CamelMimePart::get_content_object part has a pointer "
"to a content object as well as a temp buffer\n");
@@ -803,6 +805,7 @@ camel_mime_part_encoding_to_string (CamelMimePartEncodingType encoding)
case CAMEL_MIME_PART_ENCODING_QUOTEDPRINTABLE:
return "quoted-printable";
}
+ return "";
}
@@ -810,13 +813,13 @@ camel_mime_part_encoding_to_string (CamelMimePartEncodingType encoding)
CamelMimePartEncodingType
camel_mime_part_encoding_from_string (const gchar *string)
{
- if (strncmp (string, "7bit") == 0)
+ if (strcmp (string, "7bit") == 0)
return CAMEL_MIME_PART_ENCODING_7BIT;
- else if (strncmp (string, "8bit") == 0)
+ else if (strcmp (string, "8bit") == 0)
return CAMEL_MIME_PART_ENCODING_8BIT;
- else if (strncmp (string, "base64") == 0)
+ else if (strcmp (string, "base64") == 0)
return CAMEL_MIME_PART_ENCODING_BASE64;
- else if (strncmp (string, "quoted-printable") == 0)
+ else if (strcmp (string, "quoted-printable") == 0)
return CAMEL_MIME_PART_ENCODING_QUOTEDPRINTABLE;
else
/* FIXME? Spit a warning? */
a>sunpoet2013-11-196-87/+33 * - Remove NO_STAGE as these have been tested to be safebdrewery2013-09-251-1/+0 * Add NO_STAGE all over the place in preparation for the staging support (cat: ...bapt2013-09-201-5/+2 * - Remove MAKE_JOBS_SAFE variableak2013-08-151-1/+0 * - Reassign ports from avl@ back to pool at his request.fluffy2013-02-211-1/+1 * - Get Rid MD5 supportmiwi2011-03-191-1/+0 * Sync to new bsd.autotools.mkade2010-12-041-1/+1 * - Switch SourceForge ports to the new File Release System: categories startin...amdmi32009-08-221-2/+1 * -Repocopy devel/libtool15 -> libtool22 and libltdl15 -> libltdl22.mezz2009-08-031-1/+1 * Change MAINTAINER on my ports to my FreeBSD email addressavl2009-05-291-1/+1 * - Allow to build with MAKE_JOBS_SAFEmiwi2009-04-011-1/+2