[evolution-data-server] Bug #655331 - pgp/gpg signature is not shown



commit 5c6430c6c4e093f41994549a818487efaf4836e3
Author: Milan Crha <mcrha redhat com>
Date:   Tue Jul 26 22:14:14 2011 +0200

    Bug #655331 - pgp/gpg signature is not shown

 camel/camel-multipart-signed.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/camel/camel-multipart-signed.c b/camel/camel-multipart-signed.c
index f0f28c4..62b47da 100644
--- a/camel/camel-multipart-signed.c
+++ b/camel/camel-multipart-signed.c
@@ -63,7 +63,7 @@ multipart_signed_clip_stream (CamelMultipartSigned *mps,
 	src = camel_data_wrapper_get_byte_array (data_wrapper);
 	dst = g_byte_array_new ();
 
-	if (start + end <= src->len) {
+	if (start >= 0 && end < src->len) {
 		const guint8 *data = &src->data[start];
 		g_byte_array_append (dst, data, end - start);
 	}



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]