aboutsummaryrefslogtreecommitdiffstats
path: root/camel/gmime-content-field.c
diff options
context:
space:
mode:
Diffstat (limited to 'camel/gmime-content-field.c')
-rw-r--r--camel/gmime-content-field.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/camel/gmime-content-field.c b/camel/gmime-content-field.c
index 53d5135c23..ce61cf2a84 100644
--- a/camel/gmime-content-field.c
+++ b/camel/gmime-content-field.c
@@ -130,7 +130,8 @@ gmime_content_field_write_to_stream (GMimeContentField *content_field, CamelStre
txt = header_content_type_format(content_field->content_type);
if (txt) {
- camel_stream_write_strings (stream, "Content-Type: ", txt, "\n", NULL);
+ /* FIXME. Shouldn't pass NULL for CamelException. */
+ camel_stream_printf (stream, NULL, "Content-Type: %s\n", txt);
g_free(txt);
}
}