From 11f8fdd1cc92671ed3c2bdadae1aca673b7c4987 Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Mon, 5 Feb 2001 22:58:35 +0000 Subject: fixed up the display a bit svn path=/trunk/; revision=8001 --- mail/mail-format.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'mail') 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, "
"); @@ -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) { -- cgit v1.2.3