From c886f7d8bc6d688c8a98385c1ed8b134a276f44f Mon Sep 17 00:00:00 2001 From: Larry Ewing Date: Tue, 16 Oct 2001 01:59:34 +0000 Subject: don't write strings longer than they actually are. 2001-10-15 Larry Ewing * mail-display.c (mail_error_write): don't write strings longer than they actually are. svn path=/trunk/; revision=13693 --- mail/mail-display.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'mail/mail-display.c') diff --git a/mail/mail-display.c b/mail/mail-display.c index 71a1ccbaf6..f6fc6d7080 100644 --- a/mail/mail-display.c +++ b/mail/mail-display.c @@ -37,6 +37,7 @@ #include /* XXX */ #include /* XXX */ #include /* XXX */ +#include #include "e-util/e-html-utils.h" #include "e-util/e-mktemp.h" @@ -1322,11 +1323,13 @@ mail_error_write (GtkHTML *html, GtkHTMLStream *stream, va_end (ap); htmltext = e_text_to_html (buf, E_TEXT_TO_HTML_CONVERT_NL | E_TEXT_TO_HTML_CONVERT_URLS); - gtk_html_write (html, stream, "
", 32); - gtk_html_write (html, stream, htmltext, strlen (htmltext)); - gtk_html_write (html, stream, "
", 29); - g_free (htmltext); g_free (buf); + + gtk_html_stream_printf (stream, "
"); + gtk_html_stream_write (stream, htmltext, strlen (htmltext)); + gtk_html_stream_printf (stream, "
"); + + g_free (htmltext); } static void -- cgit v1.2.3