aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@src.gnome.org>2001-02-06 06:58:35 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2001-02-06 06:58:35 +0800
commit11f8fdd1cc92671ed3c2bdadae1aca673b7c4987 (patch)
treeb3f563d58c76fb47ccd5a4083ae927b039809526 /mail
parentdb7b5a96a4c8f8dbf0a5fd05753024e3ee0db585 (diff)
downloadgsoc2013-evolution-11f8fdd1cc92671ed3c2bdadae1aca673b7c4987.tar
gsoc2013-evolution-11f8fdd1cc92671ed3c2bdadae1aca673b7c4987.tar.gz
gsoc2013-evolution-11f8fdd1cc92671ed3c2bdadae1aca673b7c4987.tar.bz2
gsoc2013-evolution-11f8fdd1cc92671ed3c2bdadae1aca673b7c4987.tar.lz
gsoc2013-evolution-11f8fdd1cc92671ed3c2bdadae1aca673b7c4987.tar.xz
gsoc2013-evolution-11f8fdd1cc92671ed3c2bdadae1aca673b7c4987.tar.zst
gsoc2013-evolution-11f8fdd1cc92671ed3c2bdadae1aca673b7c4987.zip
fixed up the display a bit
svn path=/trunk/; revision=8001
Diffstat (limited to 'mail')
-rw-r--r--mail/mail-format.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/mail/mail-format.c b/mail/mail-format.c
index 5645134ae7..8200fc5d8c 100644
--- a/mail/mail-format.c
+++ b/mail/mail-format.c
@@ -988,7 +988,7 @@ try_inline_pgp (char *start, MailDisplay *md)
static char *
try_inline_pgp_sig (char *start, MailDisplay *md)
{
- char *end, *ciphertext;
+ char *end, *ciphertext, *plaintext;
CamelException *ex;
gboolean valid;
@@ -996,7 +996,7 @@ try_inline_pgp_sig (char *start, MailDisplay *md)
if (!end)
return start;
- end += strlen ("-----END PGP SIGNATURE-----") - 1;
+ end += strlen ("-----END PGP SIGNATURE-----");
mail_html_write (md->html, md->stream, "<hr>");
@@ -1005,7 +1005,9 @@ try_inline_pgp_sig (char *start, MailDisplay *md)
valid = openpgp_verify (ciphertext, end - start, NULL, 0, ex);
g_free (ciphertext);
- mail_text_write (md->html, md->stream, "%s", start);
+ plaintext = g_strndup (start, end - start);
+ mail_text_write (md->html, md->stream, "%s", plaintext);
+ g_free (plaintext);
/* Now display the "seal-of-authenticity" or something... */
if (valid) {