[evolution-mapi] Bug 585851 – Invalid calendar attachments due to truncation.
- From: Johnny Jacob <jjohnny src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [evolution-mapi] Bug 585851 – Invalid calendar attachments due to truncation.
- Date: Mon, 10 Aug 2009 09:12:33 +0000 (UTC)
commit ed912a5616eb6d67f097628043f729f14353ac07
Author: Mattias Eriksson <snaggen acc umu se>
Date: Mon Aug 10 13:39:14 2009 +0530
Bug 585851 â?? Invalid calendar attachments due to truncation.
Camel : Use the number of bytes and not number of characters.
src/camel/camel-mapi-folder.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/camel/camel-mapi-folder.c b/src/camel/camel-mapi-folder.c
index d82d60d..3d7b9f4 100644
--- a/src/camel/camel-mapi-folder.c
+++ b/src/camel/camel-mapi-folder.c
@@ -1275,7 +1275,7 @@ fetch_item_cb (FetchItemsCallbackData *item_data, gpointer data)
body = g_new0(ExchangeMAPIStream, 1);
body->proptag = PR_BODY;
body->value = g_byte_array_new ();
- body->value = g_byte_array_append (body->value, appointment_body_str, g_utf8_strlen ((const gchar *)appointment_body_str, -1));
+ body->value = g_byte_array_append (body->value, appointment_body_str, strlen ((const char *)appointment_body_str));
item->msg.body_parts = g_slist_append (item->msg.body_parts, body);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]