aboutsummaryrefslogtreecommitdiffstats
path: root/mail/em-utils.c
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2011-02-02 01:09:00 +0800
committerMilan Crha <mcrha@redhat.com>2011-02-02 01:09:00 +0800
commita10247b540f298d0ae6360b5d31f7f47a733adf8 (patch)
tree1be8b726e04b120e370dffbe862fb74f97b2cc46 /mail/em-utils.c
parenta9fb511ced4cfaffb7109e58a9db66e6279e309c (diff)
downloadgsoc2013-evolution-a10247b540f298d0ae6360b5d31f7f47a733adf8.tar
gsoc2013-evolution-a10247b540f298d0ae6360b5d31f7f47a733adf8.tar.gz
gsoc2013-evolution-a10247b540f298d0ae6360b5d31f7f47a733adf8.tar.bz2
gsoc2013-evolution-a10247b540f298d0ae6360b5d31f7f47a733adf8.tar.lz
gsoc2013-evolution-a10247b540f298d0ae6360b5d31f7f47a733adf8.tar.xz
gsoc2013-evolution-a10247b540f298d0ae6360b5d31f7f47a733adf8.tar.zst
gsoc2013-evolution-a10247b540f298d0ae6360b5d31f7f47a733adf8.zip
Bug #635144 - Using external editor duplicates signature
Diffstat (limited to 'mail/em-utils.c')
-rw-r--r--mail/em-utils.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/mail/em-utils.c b/mail/em-utils.c
index 0753a75947..ad75c4829f 100644
--- a/mail/em-utils.c
+++ b/mail/em-utils.c
@@ -1266,7 +1266,6 @@ em_utils_get_proxy_uri (const gchar *pUri)
* @message:
* @credits:
* @flags: EMFormatQuote flags
- * @len:
* @source:
* @append: Text to append, can be NULL.
* @validity_found: if not NULL, then here will be set what validities
@@ -1276,13 +1275,12 @@ em_utils_get_proxy_uri (const gchar *pUri)
* Convert a message to html, quoting if the @credits attribution
* string is given.
*
- * Return value: The html version.
+ * Return value: The html version as a NULL terminated string.
**/
gchar *
em_utils_message_to_html (CamelMimeMessage *message,
const gchar *credits,
guint32 flags,
- gssize *len,
EMFormat *source,
const gchar *append,
guint32 *validity_found)
@@ -1290,7 +1288,6 @@ em_utils_message_to_html (CamelMimeMessage *message,
EMFormatQuote *emfq;
CamelStream *mem;
GByteArray *buf;
- gchar *text;
buf = g_byte_array_new ();
mem = camel_stream_mem_new ();
@@ -1324,12 +1321,7 @@ em_utils_message_to_html (CamelMimeMessage *message,
camel_stream_write(mem, "", 1, NULL, NULL);
g_object_unref (mem);
- text = (gchar *)buf->data;
- if (len)
- *len = buf->len-1;
- g_byte_array_free (buf, FALSE);
-
- return text;
+ return (gchar *) g_byte_array_free (buf, FALSE);
}
/* ********************************************************************** */